mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Fixed bug in utilising user selected timezone
git-svn-id: file:///svn/phpbb/trunk@226 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
94187506c9
commit
65bf7081c1
1 changed files with 4 additions and 3 deletions
|
@ -223,6 +223,7 @@ function init_userprefs($userdata)
|
|||
global $override_user_theme, $template, $sys_template;
|
||||
global $default_lang, $default_theme, $date_format, $sys_timezone;
|
||||
global $theme;
|
||||
|
||||
if(!$override_user_themes)
|
||||
{
|
||||
if(($userdata['user_id'] != ANONYMOUS || $userdata['user_id'] != DELETED) && $userdata['user_theme'])
|
||||
|
@ -238,15 +239,15 @@ function init_userprefs($userdata)
|
|||
{
|
||||
$theme = setuptheme($override_user_theme);
|
||||
}
|
||||
if($userdata['user_lang'] != "")
|
||||
if($userdata['user_lang'] != '')
|
||||
{
|
||||
$default_lang = $userdata['user_lang'];
|
||||
}
|
||||
if($userdata['user_dateformat'] != "")
|
||||
if($userdata['user_dateformat'] != '')
|
||||
{
|
||||
$date_format = $userdata['user_dateformat'];
|
||||
}
|
||||
if($userdata['user_timezone'])
|
||||
if(isset($userdata['user_timezone']))
|
||||
{
|
||||
$sys_timezone = $userdata['user_timezone'];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue