From: kink Date: Tue, 22 Jul 2003 08:46:54 +0000 (+0000) Subject: when falling back to the default theme, set $chosen_theme to the path X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=602bf228186eda35124c2920a834bcb83a6d7541;p=squirrelmail.git when falling back to the default theme, set $chosen_theme to the path of default to make functions that depend on $chosen_theme work correctly (most notably the select list under display preferences which would have Alien Glow selected when user has no theme set). Thanks Tim Craig for the bugreport. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5382 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/ChangeLog b/ChangeLog index d75bb24a..77e140b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -60,6 +60,8 @@ Version 1.5.0 -- CVS - Fix when forwarding messages as attachment from message list, the displayed subject was wrong (appearing to the user that the wrong messages were attached). Closes #772371. + - Fix that when user has no theme preference set, Alien Glow would be selected under + display preferences in stead of Default. ************************************** *** SquirrelMail Stable Series 1.4 *** diff --git a/include/load_prefs.php b/include/load_prefs.php index 1fd5fd20..2407d830 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -46,6 +46,7 @@ if (isset($chosen_theme) && $found_theme && (file_exists($chosen_theme))) { } else { if (isset($theme) && isset($theme[$theme_default]) && file_exists($theme[$theme_default]['PATH'])) { @include_once($theme[$theme_default]['PATH']); + $chosen_theme = $theme[$theme_default]['PATH']; } else { /** * This theme as a failsafe if no themes were found. It makes