mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 09:31:28 +02:00
Added forgotten default_theme to global declarations
git-svn-id: file:///svn/phpbb/trunk@216 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -225,14 +225,14 @@ function init_userprefs($userdata)
|
||||
{
|
||||
|
||||
global $override_user_theme, $template, $sys_template;
|
||||
global $default_lang, $date_format, $sys_timezone;
|
||||
global $default_lang, $default_theme, $date_format, $sys_timezone;
|
||||
global $theme;
|
||||
|
||||
if(!$override_user_themes)
|
||||
{
|
||||
if($userdata['user_id'] != ANONYMOUS || $userdata['user_id'] != DELETED)
|
||||
{
|
||||
$theme = setuptheme($userdata["user_theme"]);
|
||||
$theme = setuptheme($userdata['user_theme']);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -243,17 +243,17 @@ function init_userprefs($userdata)
|
||||
{
|
||||
$theme = setuptheme($override_user_theme);
|
||||
}
|
||||
if($userdata["user_lang"] != "")
|
||||
if($userdata['user_lang'] != "")
|
||||
{
|
||||
$default_lang = $userdata["user_lang"];
|
||||
$default_lang = $userdata['user_lang'];
|
||||
}
|
||||
if($userdata["user_dateformat"] != "")
|
||||
if($userdata['user_dateformat'] != "")
|
||||
{
|
||||
$date_format = $userdata["user_dateformat"];
|
||||
$date_format = $userdata['user_dateformat'];
|
||||
}
|
||||
if($userdata["user_timezone"])
|
||||
if($userdata['user_timezone'])
|
||||
{
|
||||
$sys_timezone = $userdata["user_timezone"];
|
||||
$sys_timezone = $userdata['user_timezone'];
|
||||
}
|
||||
|
||||
// Setup user's Template
|
||||
|
Reference in New Issue
Block a user