diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-29 12:30:55 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-08-29 12:30:55 +0000 |
| commit | 39703b23d309ae70f70f68e53772af5036e4192a (patch) | |
| tree | 712e4df9c58bcfab25e2299def2edb562c4475ad | |
| parent | 005b74267801f83855f6d2f9001dd45bb2b652ed (diff) | |
Moved code block to a more appropriate position + codestyle
git-svn-id: https://svn.roundcube.net/trunk@1697 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/index.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index aa6bf1293..46c4229a0 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -2,7 +2,7 @@ /* +-------------------------------------------------------------------------+ | RoundCube Webmail IMAP Client | - | Version 0.2-20080620 | + | Version 0.2-20080829 | | | | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland | | | @@ -166,7 +166,13 @@ if (empty($RCMAIL->user->ID)) { // handle keep-alive signal -if ($RCMAIL->action=='keep-alive') { +if ($RCMAIL->action == 'keep-alive') { + $OUTPUT->reset(); + $OUTPUT->send(); +} +// save preference value +else if ($RCMAIL->action == 'save-pref') { + $RCMAIL->user->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST))); $OUTPUT->reset(); $OUTPUT->send(); } @@ -201,14 +207,6 @@ $action_map = array( ) ); -// save preference value -if ($RCMAIL->action=='save-pref') - { - $USER->save_prefs(array(get_input_value('_name', RCUBE_INPUT_POST) => get_input_value('_value', RCUBE_INPUT_POST))); - $OUTPUT->reset(); - $OUTPUT->send(); - } - // include task specific functions include_once 'program/steps/'.$RCMAIL->task.'/func.inc'; |
