mirror of
https://github.com/e107inc/e107.git
synced 2025-08-23 06:33:22 +02:00
Fixes #1457 New Forum Posts Menu - "Show Original Topic in Menu" option not saving. New User-Extended Field preset for User comments. New e107::debug() function added for throwing info to the browser console. (Firefox/Chrome)
This commit is contained in:
@@ -38,7 +38,7 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
function getQuery()
|
||||
{
|
||||
$max_age = vartrue($this->menuPref['maxage'], 0);
|
||||
$max_age = ($max_age == 0) ? '' : '(t.post_datestamp > '.(time()-(int)$max_age*86400).') AND ';
|
||||
$max_age = ($max_age == 0) ? '' : '(p.post_datestamp > '.(time()-(int)$max_age*86400).') AND ';
|
||||
|
||||
$forumList = implode(',', $this->forumObj->getForumPermList('view'));
|
||||
|
||||
@@ -148,6 +148,8 @@ class forum_newforumposts_menu // plugin folder + menu name (without the .php)
|
||||
$caption = LAN_PLUGIN_FORUM_LATESTPOSTS;
|
||||
}
|
||||
|
||||
// e107::debug('menuPref', $this->menuPref);
|
||||
|
||||
e107::getRender()->tablerender($caption, $text, 'nfp_menu');
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user