aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-03-25 16:19:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-03-25 16:19:20 +0000
commitc92e1c12a07a1c0eca024f0c127d875c08901f24 (patch)
treed79257a2acb3ed3dedcca3141898643986e7e206 /phpBB
parent30a0cf29fbc971e04f62be9ef12da3e03327d5d5 (diff)
downloadforums-c92e1c12a07a1c0eca024f0c127d875c08901f24.tar
forums-c92e1c12a07a1c0eca024f0c127d875c08901f24.tar.gz
forums-c92e1c12a07a1c0eca024f0c127d875c08901f24.tar.bz2
forums-c92e1c12a07a1c0eca024f0c127d875c08901f24.tar.xz
forums-c92e1c12a07a1c0eca024f0c127d875c08901f24.zip
save graham temporarly some headaches. ;)
git-svn-id: file:///svn/phpbb/trunk@5722 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/template.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index fc03298c6c..1af9720f43 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -204,6 +204,13 @@ class template
trigger_error("template->_tpl_load(): No file specified for handle $handle", E_USER_ERROR);
}
+ // Just compile if no user object is present (happens within the installer)
+ if (!$user)
+ {
+ $compile->_tpl_load_file($handle);
+ return false;
+ }
+
if ($user->theme['template_storedb'])
{
$sql = 'SELECT * FROM ' . STYLES_TPLDATA_TABLE . '