[feature/template-events] PHP does not parse <?php?>, avoid generating it.

PHPBB3-9550
This commit is contained in:
Oleg Pudeyev 2012-03-16 02:09:46 -04:00
parent bdbb382a26
commit ecdb54fc04

View file

@ -905,6 +905,8 @@ class phpbb_template_filter extends php_user_filter
$compiled = $this->template_compile->compile_file($file);
$all_compiled .= $compiled;
}
// Need spaces inside php tags as php cannot grok
// < ?php? > sans the spaces
return ' ?>' . $all_compiled . '<?php ';
}