Changed to allow change of theme in 'allow_demo_mode' during session
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 12 May 2010 08:09:07 +0000 (08:09 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 12 May 2010 08:09:07 +0000 (08:09 +0000)
CHANGELOG.txt
admin/display_prefs.php

index 8cb8f903a582c7d896c37a79b5537b4ccd4b93d6..5d0eeb75c5a3c6de4e0d48ce90104c26d3b6acbb 100644 (file)
@@ -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
index 085c5cc4ddc9f829febd898e975154a6aaaa7713..2ab17076cbe64d86f637d2e355edef41c2059997 100644 (file)
@@ -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']);