summaryrefslogtreecommitdiff
path: root/program/steps/settings/save_prefs.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-06-15 09:25:19 +0000
committeralecpl <alec@alec.pl>2008-06-15 09:25:19 +0000
commit3b6b91ad1e6ba80b28617cbf1e328cc8ed28b265 (patch)
treeedb361bad07583c8d51040e14690ec5a6229f34e /program/steps/settings/save_prefs.inc
parente58df3adc9b4182c232c94178d024bb4a89c2290 (diff)
- lost files from r1539
Diffstat (limited to 'program/steps/settings/save_prefs.inc')
-rw-r--r--program/steps/settings/save_prefs.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/settings/save_prefs.inc b/program/steps/settings/save_prefs.inc
index 4498b7b32..6a0498b93 100644
--- a/program/steps/settings/save_prefs.inc
+++ b/program/steps/settings/save_prefs.inc
@@ -35,6 +35,7 @@ $a_user_prefs = array(
'logout_expunge' => isset($_POST['_logout_expunge']) ? TRUE : FALSE,
'draft_autosave' => isset($_POST['_draft_autosave']) ? intval($_POST['_draft_autosave']) : 0,
'mdn_requests' => isset($_POST['_mdn_requests']) ? intval($_POST['_mdn_requests']) : 0,
+ 'skin' => isset($_POST['_skin']) ? get_input_value('_skin', RCUBE_INPUT_POST) : $CONFIG['default_skin'],
);
// don't override these parameters
@@ -47,6 +48,9 @@ if (isset($_POST['_language'])) {
$RCMAIL->load_language(get_input_value('_language', RCUBE_INPUT_POST));
}
+// switch skin
+$OUTPUT->set_skin($a_user_prefs['skin']);
+
// force min size
if ($a_user_prefs['pagesize'] < 1)
$a_user_prefs['pagesize'] = 10;