Merged changes form main trunk (2.2.8, 2.2.9)
[fa-stable.git] / admin / display_prefs.php
index 0e2084915a13d1703e78777ddc8b85bfb11e89d3..d792f10441fb040dafb30369d70aa8356b0cebae 100644 (file)
@@ -47,6 +47,9 @@ if (isset($_POST['setprefs']))
 
                flush_dir(company_path().'/js_cache');  
 
+               if ($chg_theme && $allow_demo_mode)
+                       $_SESSION["wa_current_user"]->prefs->theme = $_POST['theme'];
+
                if ($chg_theme || $chg_lang)
                        meta_forward($_SERVER['PHP_SELF']);