1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 00:07:44 +02:00

Fix the use of an invalid config option (Bug #861)

Ordinarily this would have been quite low priority, but it had the potential to cause an error within the error handler, so I'm dealing with it now


git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5454 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames
2006-01-14 15:53:07 +00:00
parent 6087293182
commit 8ea409d1cc
2 changed files with 2 additions and 6 deletions

View File

@@ -661,11 +661,7 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '',
}
}
if ( empty($template) )
{
$template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']);
}
if ( empty($theme) )
if ( empty($template) || empty($theme) )
{
$theme = setup_style($board_config['default_style']);
}