mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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:
parent
6e54257d30
commit
1b95e1ecb1
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue