projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Changed to allow change of theme in 'allow_demo_mode' during session
[fa-stable.git]
/
admin
/
display_prefs.php
diff --git
a/admin/display_prefs.php
b/admin/display_prefs.php
index 085c5cc4ddc9f829febd898e975154a6aaaa7713..2ab17076cbe64d86f637d2e355edef41c2059997 100644
(file)
--- 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']);