X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Fload_prefs.php;h=d86cf6cae78cd26ac8eccd8bc8b022568d23af78;hp=169908b74ebd62cbc5e74dd9f5a7c128cc904d6c;hb=deb25c8f038fb468935c920c2c6f2c61b3e72ece;hpb=0b5be35dd55979d26c4a3b1212e81a09a04785b9 diff --git a/include/load_prefs.php b/include/load_prefs.php index 169908b7..d86cf6ca 100644 --- a/include/load_prefs.php +++ b/include/load_prefs.php @@ -53,13 +53,16 @@ if (!$found_templateset) { 'default' : $aTemplateSet[$templateset_default]['ID'] ); } +$chosen_theme = getPref($data_dir, $username, 'chosen_theme'); + +/* $theme = ( !isset($theme) ? array() : $theme ); $color = ( !isset($color) ? array() : $color ); $chosen_theme = getPref($data_dir, $username, 'chosen_theme'); $found_theme = false; -/* need to adjust $chosen_theme path with SM_PATH */ +// need to adjust $chosen_theme path with SM_PATH $chosen_theme = preg_replace("/(\.\.\/){1,}/", SM_PATH, $chosen_theme); for ($i = 0; $i < count($theme); ++$i){ @@ -80,6 +83,7 @@ if (isset($chosen_theme) && $found_theme && (file_exists($chosen_theme))) { } } +*/ // user's icon theme, if using icons $icon_theme = getPref($data_dir, $username, 'icon_theme', 'images/themes/xp/' );