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:
Meik Sievertsen 2006-06-21 16:52:10 +00:00
parent d8137406e2
commit 8dbef23cea

View file

@ -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;
} }