alecpl
2008-06-15 67effe9904d62880ab5bdaaf58b97af7113ed97f
program/steps/settings/save_prefs.inc
@@ -27,6 +27,7 @@
  'prefer_html'  => isset($_POST['_prefer_html']) ? TRUE : FALSE,
  'addrbook_show_images' => isset($_POST['_addrbook_show_images']) ? TRUE : FALSE,
  'htmleditor'   => isset($_POST['_htmleditor']) ? TRUE : FALSE,
  'inline_images'   => isset($_POST['_inline_images']) ? TRUE : FALSE,
  'preview_pane' => isset($_POST['_preview_pane']) ? TRUE : FALSE,
  'read_when_deleted' => isset($_POST['_read_when_deleted']) ? TRUE : FALSE,
  'flag_for_deletion' => isset($_POST['_flag_for_deletion']) ? TRUE : FALSE,
@@ -34,6 +35,7 @@
  '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['skin'],
  );
// don't override these parameters
@@ -46,6 +48,9 @@
  $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;