more efficient + fixing an oops

git-svn-id: file:///svn/phpbb/trunk@6303 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-08-19 14:36:00 +00:00
parent f39eeda225
commit 7c59533950

View file

@ -105,8 +105,7 @@ class template_compile
{ {
// This matches the information gathered from the internal PHP lexer // This matches the information gathered from the internal PHP lexer
$match = array( $match = array(
'#<\?.*?\?>#s', '#<([\?%])=?.*?\1>#s',
'#<[%?]=.*?\?>#s',
'#<script\s+language\s*=\s*(["\']?)php\1\s*>.*?</script\s*>#s', '#<script\s+language\s*=\s*(["\']?)php\1\s*>.*?</script\s*>#s',
'#<\?php(?:\r\n?|[ \n\t]).*?\?>#s' '#<\?php(?:\r\n?|[ \n\t]).*?\?>#s'
); );