X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdisplay_prefs.php;h=d792f10441fb040dafb30369d70aa8356b0cebae;hb=9502b1b3fc30a8b12c647f7e024e8b8da6a50af6;hp=78809c0c6c7c56defa38e41feb75c753bcface6b;hpb=d23b97ed26bc0608c9ba1037b66058c709e83765;p=fa-stable.git diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 78809c0c..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']); @@ -60,7 +63,7 @@ if (isset($_POST['setprefs'])) start_form(); -start_outer_table($table_style2); +start_outer_table(TABLESTYLE2); table_section(1); table_section_title(_("Decimal Places"));