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:
parent
bdbb382a26
commit
ecdb54fc04
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user