From 04f91c3ee2e3358024456d32695a4dfbe382fe25 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Mon, 10 Jan 2005 07:14:02 +0000 Subject: [PATCH] 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 --- phpBB/includes/template.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index 317bf8c5b6..81e674d923 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -440,9 +440,10 @@ class template $includephp_blocks = $matches[1]; $code = preg_replace('##', '', $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]); }