X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdisplay_prefs.php;h=e686a81a59ff4d6f1dc493d77a524cb78a3d9a17;hb=da7df35c61205d0b1af47d286be591b8a3194b0c;hp=66acf88dde0ff795e680df18b34044e78ac41a20;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 66acf88d..e686a81a 100644 --- a/admin/display_prefs.php +++ b/admin/display_prefs.php @@ -51,13 +51,13 @@ if (isset($_POST['setprefs'])) flush_dir(company_path().'/js_cache'); - if ($chg_theme && $allow_demo_mode) + if ($chg_theme && $SysPrefs->allow_demo_mode) $_SESSION["wa_current_user"]->prefs->theme = $_POST['theme']; if ($chg_theme || $chg_lang || $chg_date_format || $chg_date_sep) meta_forward($_SERVER['PHP_SELF']); - if ($allow_demo_mode) + if ($SysPrefs->allow_demo_mode) display_warning(_("Display settings have been updated. Keep in mind that changed settings are restored on every login in demo mode.")); else display_notification_centered(_("Display settings have been updated."));