mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/template-events] Report when templates cannot be compiled.
PHPBB3-9550
This commit is contained in:
parent
4b28b413f2
commit
09b4cf2f4c
1 changed files with 4 additions and 0 deletions
|
@ -939,6 +939,10 @@ class phpbb_template_filter extends php_user_filter
|
||||||
foreach ($files as $file)
|
foreach ($files as $file)
|
||||||
{
|
{
|
||||||
$compiled = $this->template_compile->compile_file($file);
|
$compiled = $this->template_compile->compile_file($file);
|
||||||
|
if ($compiled === false)
|
||||||
|
{
|
||||||
|
trigger_error(sprintf('The file could not be compiled: %s', phpbb_filter_root_path($file)), E_USER_ERROR);
|
||||||
|
}
|
||||||
$all_compiled .= $compiled;
|
$all_compiled .= $compiled;
|
||||||
}
|
}
|
||||||
// Need spaces inside php tags as php cannot grok
|
// Need spaces inside php tags as php cannot grok
|
||||||
|
|
Loading…
Add table
Reference in a new issue