mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
show error if template path could not be determined
git-svn-id: file:///svn/phpbb/trunk@6112 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d8137406e2
commit
8dbef23cea
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ class template
|
||||||
$this->root = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template';
|
$this->root = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template';
|
||||||
$this->cachepath = $phpbb_root_path . 'cache/tpl_' . $user->theme['template_path'] . '_';
|
$this->cachepath = $phpbb_root_path . 'cache/tpl_' . $user->theme['template_path'] . '_';
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
trigger_error('Template path could not be found: styles/' . $user->theme['template_path'] . '/template', E_USER_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue