mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
ok, the nasty one then... :/
git-svn-id: file:///svn/phpbb/trunk@8044 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6b75e8ffcb
commit
8257d1c828
2 changed files with 13 additions and 5 deletions
|
@ -627,11 +627,11 @@ class template_compile
|
|||
{
|
||||
$expr_end++;
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "!(isset($is_arg) && ($is_arg / $expr_arg) % $expr_arg)";
|
||||
$expr = "!(($is_arg / $expr_arg) % $expr_arg)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$expr = "!(isset($is_arg) && $is_arg & 1)";
|
||||
$expr = "!($is_arg & 1)";
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -640,11 +640,11 @@ class template_compile
|
|||
{
|
||||
$expr_end++;
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "(isset($is_arg) && ($is_arg / $expr_arg) % $expr_arg)";
|
||||
$expr = "(($is_arg / $expr_arg) % $expr_arg)";
|
||||
}
|
||||
else
|
||||
{
|
||||
$expr = "(isset($is_arg) && $is_arg & 1)";
|
||||
$expr = "($is_arg & 1)";
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -653,7 +653,7 @@ class template_compile
|
|||
{
|
||||
$expr_end++;
|
||||
$expr_arg = $tokens[$expr_end++];
|
||||
$expr = "!(isset($is_arg) && $is_arg % $expr_arg)";
|
||||
$expr = "!($is_arg % $expr_arg)";
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -149,6 +149,14 @@ class template
|
|||
{
|
||||
global $user;
|
||||
|
||||
if (defined('IN_ERROR_HANDLER'))
|
||||
{
|
||||
if ((E_NOTICE & error_reporting()) == E_NOTICE)
|
||||
{
|
||||
error_reporting(error_reporting() ^ E_NOTICE);
|
||||
}
|
||||
}
|
||||
|
||||
if ($filename = $this->_tpl_load($handle))
|
||||
{
|
||||
($include_once) ? include_once($filename) : include($filename);
|
||||
|
|
Loading…
Add table
Reference in a new issue