From: Joe Hunt Date: Wed, 12 May 2010 08:09:07 +0000 (+0000) Subject: Changed to allow change of theme in 'allow_demo_mode' during session X-Git-Tag: 2.3-final~911 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=42b7bc81eecc99d146c260d999a438ded4c32457;p=fa-stable.git Changed to allow change of theme in 'allow_demo_mode' during session --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8cb8f903..5d0eeb75 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +12-May-2010 Joe Hunt +! Changed to allow change of theme in 'allow_demo_mode' during session +$ /admin/display_prefs.php + 10-May-2010 Joe Hunt/Alvin ! Changed so Print Statements don't list voided items. $ /reporting/rep108.php diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 085c5cc4..2ab17076 100644 --- a/admin/display_prefs.php +++ b/admin/display_prefs.php @@ -50,6 +50,9 @@ if (isset($_POST['setprefs'])) flush_dir($comp_path.'/'.user_company().'/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']);