summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-07-05 19:25:47 +0000
committeralecpl <alec@alec.pl>2009-07-05 19:25:47 +0000
commit2f2bb4020b5d3a79a65177d54fe1b5ade1efb69d (patch)
tree71292be4c29dd957c00da19c30b56e660199230c /program
parent10914a05eb4dcff24b0704a8204989b1c976e5e7 (diff)
- don't create rcube_browser object twice
Diffstat (limited to 'program')
-rw-r--r--program/steps/mail/func.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 004f80d7e..e7eb4b373 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -244,7 +244,6 @@ function rcmail_message_list($attrib)
if (!sizeof($a_headers))
$OUTPUT->show_message('nomessagesfound', 'notice');
- $browser = new rcube_browser;
$a_js_message_arr = array();
// create row for each message
@@ -314,7 +313,7 @@ function rcmail_message_list($attrib)
$uid_param = $mbox==$CONFIG['drafts_mbox'] ? '_draft_uid' : '_uid';
$cont = abbreviate_string(trim($IMAP->decode_header($header->$col)), 160);
if (empty($cont)) $cont = rcube_label('nosubject');
- $cont = $browser->ie ? Q($cont) : sprintf('<a href="%s" onclick="return rcube_event.cancel(event)">%s</a>', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont));
+ $cont = $OUTPUT->browser->ie ? Q($cont) : sprintf('<a href="%s" onclick="return rcube_event.cancel(event)">%s</a>', Q(rcmail_url($action, array($uid_param=>$header->uid, '_mbox'=>$mbox))), Q($cont));
}
else if ($col=='flag')
$cont = $flagged_icon ? sprintf($image_tag, $skin_path, $flagged_icon, '') : '';
@@ -455,7 +454,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE, $replace=TRUE)
$a_msg_flags['forwarded'] = 1;
if ($header->flagged)
$a_msg_flags['flagged'] = 1;
-
+
$OUTPUT->command('add_message_row',
$header->uid,
$a_msg_cols,