mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
- fixing a bug i am unsure about when it occurs (but it occurs). The symptoms are broken template cache files if after removing unnecessary php opening/closing tags result in statements being syntactially incorrect.
- added real syncing to forums acp (not only forum statistics rebuild) git-svn-id: file:///svn/phpbb/trunk@6419 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -214,7 +214,7 @@ class template_compile
|
||||
// There will be a number of occassions where we switch into and out of
|
||||
// PHP mode instantaneously. Rather than "burden" the parser with this
|
||||
// we'll strip out such occurences, minimising such switching
|
||||
$template_php = str_replace(' ?><?php ', '', $template_php);
|
||||
$template_php = str_replace(' ?><?php ', ' ', $template_php);
|
||||
|
||||
return (!$no_echo) ? $template_php : "\$$echo_var .= '" . $template_php . "'";
|
||||
}
|
||||
|
Reference in New Issue
Block a user