mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Changes related to multiple language support (see announcement + bug #2137)
Thanks to Anthrax101 for the suggested code git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@6025 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5a8697920c
commit
3ca51916a0
1 changed files with 3 additions and 4 deletions
|
@ -368,10 +368,9 @@ function init_userprefs($userdata)
|
|||
message_die(CRITICAL_ERROR, 'Could not update user language info');
|
||||
}
|
||||
|
||||
$board_config['default_lang'] = $default_lang;
|
||||
$userdata['user_lang'] = $default_lang;
|
||||
}
|
||||
elseif ( $board_config['default_lang'] !== $default_lang )
|
||||
elseif ( $userdata['user_id'] === ANONYMOUS && $board_config['default_lang'] !== $default_lang )
|
||||
{
|
||||
$sql = 'UPDATE ' . CONFIG_TABLE . "
|
||||
SET config_value = '" . $default_lang . "'
|
||||
|
@ -381,9 +380,9 @@ function init_userprefs($userdata)
|
|||
{
|
||||
message_die(CRITICAL_ERROR, 'Could not update user language info');
|
||||
}
|
||||
}
|
||||
|
||||
$board_config['default_lang'] = $default_lang;
|
||||
}
|
||||
|
||||
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue