mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
Added code to create an instance of $template if it does not exist
git-svn-id: file:///svn/phpbb/trunk@267 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
689d58525e
commit
3ee09c613c
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ function error_die($error_code, $error_msg = "", $line = "", $file = "")
|
||||||
{
|
{
|
||||||
include('language/lang_english.'.$phpEx);
|
include('language/lang_english.'.$phpEx);
|
||||||
}
|
}
|
||||||
|
if(!$template)
|
||||||
|
{
|
||||||
|
$template = new Template("templates/Default");
|
||||||
|
}
|
||||||
include('includes/page_header.'.$phpEx);
|
include('includes/page_header.'.$phpEx);
|
||||||
}
|
}
|
||||||
if(!$error_msg)
|
if(!$error_msg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue