X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdisplay_prefs.php;h=d792f10441fb040dafb30369d70aa8356b0cebae;hb=b54fdb00859af85c72742d32ebc628ef52b81cec;hp=0e2084915a13d1703e78777ddc8b85bfb11e89d3;hpb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;p=fa-stable.git diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 0e208491..d792f104 100644 --- a/admin/display_prefs.php +++ b/admin/display_prefs.php @@ -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']);