aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-05-11 13:38:10 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-11-17 16:39:59 -0500
commit09b4cf2f4c6df4d967f4df66f2bb29e38ee10a1d (patch)
tree8364dc0198d3b2c38037d8da5b09183b99ac899f /phpBB/includes
parent4b28b413f2ccaa45ab354f48b0015e544dd249da (diff)
downloadforums-09b4cf2f4c6df4d967f4df66f2bb29e38ee10a1d.tar
forums-09b4cf2f4c6df4d967f4df66f2bb29e38ee10a1d.tar.gz
forums-09b4cf2f4c6df4d967f4df66f2bb29e38ee10a1d.tar.bz2
forums-09b4cf2f4c6df4d967f4df66f2bb29e38ee10a1d.tar.xz
forums-09b4cf2f4c6df4d967f4df66f2bb29e38ee10a1d.zip
[feature/template-events] Report when templates cannot be compiled.
PHPBB3-9550
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template/filter.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/template/filter.php b/phpBB/includes/template/filter.php
index 9f814f5c5f..385612b094 100644
--- a/phpBB/includes/template/filter.php
+++ b/phpBB/includes/template/filter.php
@@ -939,6 +939,10 @@ class phpbb_template_filter extends php_user_filter
foreach ($files as $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;
}
// Need spaces inside php tags as php cannot grok