1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-22 07:20:11 +02:00

[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,7 +905,9 @@ class phpbb_template_filter extends php_user_filter
$compiled = $this->template_compile->compile_file($file);
$all_compiled .= $compiled;
}
return '?>' . $all_compiled . '<?php';
// Need spaces inside php tags as php cannot grok
// < ?php? > sans the spaces
return ' ?>' . $all_compiled . '<?php ';
}
// 1. find all mods defining hooks for location