1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 13:41:52 +02:00

Forum fix: fixed forgotten "global $menu_pref;" in newforumposts_menu.php handles improperly the menu + fixed forgotten closing ">" bracket in newforumposts_menu_config.php breaks HTML and optional parsing titles;

This commit is contained in:
berckoff 2012-01-10 14:40:09 +00:00
parent e751324378
commit 771fc01a9c
2 changed files with 6 additions and 9 deletions

View File

@ -12,7 +12,9 @@
* $Id$
*/
if (!defined('e107_INIT')) { exit; }
if (!defined('e107_INIT')) exit;
global $menu_pref;
$e107 = e107::getInstance();
$gen = new convert;
@ -20,7 +22,7 @@ $gen = new convert;
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_newforumposts_menu.php');
include_once(e_PLUGIN.'forum/forum_class.php');
$max_age = varset($menu_pref['newforumposts_maxage'], 0);
$max_age = vartrue($menu_pref['newforumposts_maxage'], 0);
$max_age = $max_age == 0 ? '' : '(t.post_datestamp > '.(time()-(int)$max_age*86400).') AND ';
$forum = new e107forum;

View File

@ -88,11 +88,7 @@ $text = "<div style='text-align:center'>
<tr>
<td class='forumheader3'>".NFP_8.":</td>
<td class='forumheader3'>
<input type=\"checkbox\" name=\"newforumposts_title\" value=\"1\" ";
if ($menu_pref['newforumposts_title']) {
$text .= " checked ";
}
$text .= "
<input type='checkbox' name='newforumposts_title' value='1'".($menu_pref['newforumposts_title'] ? ' checked="checked"' : '')."
</td>
</tr>
@ -105,5 +101,4 @@ $text .= "
</form>
</div>";
$ns->tablerender(NFP_10, $text);
require_once(e_ADMIN."footer.php");
?>
require_once(e_ADMIN."footer.php");