X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdisplay_prefs.php;h=e686a81a59ff4d6f1dc493d77a524cb78a3d9a17;hb=95f98ed74ac6379b95e2ceb1eb0c9bbcd36fd4a9;hp=9b60dc55949b2fd56575bc12e42655058c8e006d;hpb=2948486e17c38fa2d9d857ed573a85c2e44aeee9;p=fa-stable.git diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 9b60dc55..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.")); @@ -165,4 +165,3 @@ end_form(2); end_page(); -?> \ No newline at end of file