aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 3060c31510..fa33f57800 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -177,6 +177,8 @@ class Template {
if (!$this->compile_load($_str, $handle, true))
{
+ global $user;
+
if (!$this->loadfile($handle))
{
trigger_error("Template->pparse(): Couldn't load template file for handle $handle", E_USER_ERROR);
@@ -724,10 +726,6 @@ class Template {
return;
}
-
-
-
-
function compile_cache_clear($mode, &$dir, &$template)
{
$template_list = array();