mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02: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:
@@ -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'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user