mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
this should eliminate most problems with statements not interpreted but valid. We really do not use/need multiline conditionals. ;)
git-svn-id: file:///svn/phpbb/trunk@5053 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3de2acb3df
commit
04f91c3ee2
1 changed files with 4 additions and 3 deletions
|
@ -440,9 +440,10 @@ class template
|
|||
$includephp_blocks = $matches[1];
|
||||
$code = preg_replace('#<!-- INCLUDEPHP ([a-zA-Z0-9\_\-\+\.]+?) -->#', '<!-- INCLUDEPHP -->', $code);
|
||||
|
||||
preg_match_all('#<!-- (.*?) (.*?)?[ ]?-->#s', $code, $blocks);
|
||||
$text_blocks = preg_split('#<!-- (.*?) (.*?)?[ ]?-->#s', $code);
|
||||
for($i = 0; $i < count($text_blocks); $i++)
|
||||
preg_match_all('#<!-- (.*?) (.*?)?[ ]?-->#', $code, $blocks);
|
||||
$text_blocks = preg_split('#<!-- (.*?) (.*?)?[ ]?-->#', $code);
|
||||
|
||||
for ($i = 0, $j = sizeof($text_blocks); $i < $j; $i++)
|
||||
{
|
||||
$this->compile_var_tags($text_blocks[$i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue