mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-01 21:27:55 +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:
parent
6087293182
commit
8ea409d1cc
phpBB
@ -264,7 +264,7 @@ if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username'])
|
||||
$user_style = ( $HTTP_POST_VARS['style'] ) ? intval( $HTTP_POST_VARS['style'] ) : $board_config['default_style'];
|
||||
$user_lang = ( $HTTP_POST_VARS['language'] ) ? $HTTP_POST_VARS['language'] : $board_config['default_lang'];
|
||||
$user_timezone = ( isset( $HTTP_POST_VARS['timezone']) ) ? doubleval( $HTTP_POST_VARS['timezone'] ) : $board_config['board_timezone'];
|
||||
$user_template = ( $HTTP_POST_VARS['template'] ) ? $HTTP_POST_VARS['template'] : $board_config['board_template'];
|
||||
$user_template = ( $HTTP_POST_VARS['template'] ) ? $HTTP_POST_VARS['template'] : $board_config['default_style'];
|
||||
$user_dateformat = ( $HTTP_POST_VARS['dateformat'] ) ? trim( $HTTP_POST_VARS['dateformat'] ) : $board_config['default_dateformat'];
|
||||
|
||||
$user_avatar_local = ( isset( $HTTP_POST_VARS['avatarselect'] ) && !empty($HTTP_POST_VARS['submitavatar'] ) && $board_config['allow_avatar_local'] ) ? $HTTP_POST_VARS['avatarselect'] : ( ( isset( $HTTP_POST_VARS['avatarlocal'] ) ) ? $HTTP_POST_VARS['avatarlocal'] : '' );
|
||||
|
@ -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']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user