From 1b95e1ecb1f51e294aaeed25382df10d1d1ecc7f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 29 Apr 2001 20:21:33 +0000 Subject: Added forgotten default_theme to global declarations git-svn-id: file:///svn/phpbb/trunk@216 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'phpBB') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b6d610ce05..190cd75180 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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 -- cgit v1.2.1