same fix as in 1.5.1. Color codes without # does not work in standard compliance...
[squirrelmail.git] / include / load_prefs.php
index a04f57b818b30ea61470d10e47a8878f5e551d1c..6fff5fb285007286c8508a7c24bf3ae239af2ba9 100644 (file)
@@ -27,10 +27,10 @@ $custom_css = getPref($data_dir, $username, 'custom_css', 'none' );
 $theme = ( !isset($theme) ? array() : $theme );
 $color = ( !isset($color) ? array() : $color );
 $aTemplateSet = ( !isset($aTemplateSet) ? array() : $aTemplateSet );
+$templateset_default = ( !isset($templateset_default) ? 0 : $templateset_default );
 
 $chosen_theme = getPref($data_dir, $username, 'chosen_theme');
-$sTplDir = getPref($data_dir, $username, 'sTplDir');
-
+$sTplDir = getPref($data_dir, $username, 'sTplDir', SM_PATH . 'templates/default/');
 $found_templateset = false;
 
 /* need to adjust $chosen_template path with SM_PATH */