mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
save graham temporarly some headaches. ;)
git-svn-id: file:///svn/phpbb/trunk@5722 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
30a0cf29fb
commit
c92e1c12a0
1 changed files with 7 additions and 0 deletions
|
@ -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 . '
|
||||
|
|
Loading…
Add table
Reference in a new issue