From 42b7bc81eecc99d146c260d999a438ded4c32457 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 12 May 2010 08:09:07 +0000 Subject: [PATCH] Changed to allow change of theme in 'allow_demo_mode' during session --- CHANGELOG.txt | 4 ++++ admin/display_prefs.php | 3 +++ 2 files changed, 7 insertions(+) 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']); -- 2.30.2