diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-20 07:49:12 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-20 07:49:12 +0000 |
| commit | beeb9e786c452cdd5664842f8657099dd0899ff5 (patch) | |
| tree | 5098df79e8882e21335363d9ae5965c07797a20b /roundcubemail/program/steps | |
| parent | 8cb3180b6631af708f6ed4c8be79fa1d895d7525 (diff) | |
- small improvements - removed redundant code
git-svn-id: https://svn.roundcube.net/trunk@2068 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 2a917b170..7f8fb11a8 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -25,20 +25,15 @@ require_once('include/rcube_smtp.inc'); $EMAIL_ADDRESS_PATTERN = '/([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9]([a-z0-9\-][.]?)*[a-z0-9]\\.[a-z]{2,5})/i'; -if (empty($_SESSION['mbox'])) - $_SESSION['mbox'] = $IMAP->get_mailbox_name(); - // set imap properties and session vars if ($mbox = get_input_value('_mbox', RCUBE_INPUT_GPC)) $IMAP->set_mailbox(($_SESSION['mbox'] = $mbox)); +else + $_SESSION['mbox'] = $IMAP->get_mailbox_name(); if (!empty($_GET['_page'])) $IMAP->set_page(($_SESSION['page'] = intval($_GET['_page']))); -// set mailbox to INBOX if not set -if (empty($_SESSION['mbox'])) - $_SESSION['mbox'] = $IMAP->get_mailbox_name(); - // set default sort col/order to session if (!isset($_SESSION['sort_col'])) $_SESSION['sort_col'] = $CONFIG['message_sort_col']; @@ -86,7 +81,7 @@ if (empty($RCMAIL->action) || $RCMAIL->action == 'list') if (!$OUTPUT->ajax_call) $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); - $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name())); + $OUTPUT->set_pagetitle(rcmail_localize_foldername($mbox_name)); } |
