]> git.donarmstrong.com Git - roundcube.git/blobdiff - program/steps/settings/save_prefs.inc
Imported Upstream version 0.1
[roundcube.git] / program / steps / settings / save_prefs.inc
index 9b65af02dac3a736b63fb606ae2cde58cd9562ab..a2894d8f2ca105a98639683a8b2dd715e359db10 100644 (file)
@@ -15,7 +15,7 @@
  | Author: Thomas Bruederli <roundcube@gmail.com>                        |
  +-----------------------------------------------------------------------+
 
- $Id: save_prefs.inc 768 2007-09-01 14:55:10Z till $
+ $Id: save_prefs.inc 938 2007-12-10 15:27:19Z thomasb $
 
 */
 
@@ -44,15 +44,12 @@ if (isset($_POST['_language']))
 
 // force min size
 if ($a_user_prefs['pagesize'] < 1)
-  {
   $a_user_prefs['pagesize'] = 10;
-  }
+
 if (isset($CONFIG['max_pagesize']) && ($a_user_prefs['pagesize'] > $CONFIG['max_pagesize']))
-  {
   $a_user_prefs['pagesize'] = (int) $CONFIG['max_pagesize'];
-  }
 
-if (rcmail_save_user_prefs($a_user_prefs))
+if ($USER->save_prefs($a_user_prefs))
   $OUTPUT->show_message('successfullysaved', 'confirmation');