[Svn] r3980 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Tue Sep 21 10:24:52 CEST 2010


Author: alec
Date: 2010-09-21 03:24:52 -0500 (Tue, 21 Sep 2010)
New Revision: 3980

Modified:
   trunk/roundcubemail/program/steps/mail/get.inc
   trunk/roundcubemail/program/steps/mail/viewsource.inc
Log:
- Don't create a new rcube_browser object, use browser property from output object


Modified: trunk/roundcubemail/program/steps/mail/get.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/get.inc	2010-09-21 07:54:21 UTC (rev 3979)
+++ trunk/roundcubemail/program/steps/mail/get.inc	2010-09-21 08:24:52 UTC (rev 3980)
@@ -79,7 +79,7 @@
     $ctype_secondary = strtolower($part->ctype_secondary);
     $mimetype = sprintf('%s/%s', $ctype_primary, $ctype_secondary);
 
-    $browser = new rcube_browser;
+    $browser = $RCMAIL->output->browser;
 
     // send download headers
     if ($_GET['_download']) {

Modified: trunk/roundcubemail/program/steps/mail/viewsource.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/viewsource.inc	2010-09-21 07:54:21 UTC (rev 3979)
+++ trunk/roundcubemail/program/steps/mail/viewsource.inc	2010-09-21 08:24:52 UTC (rev 3980)
@@ -30,8 +30,8 @@
 
   if (!empty($_GET['_save'])) {
     $filename = ($headers->subject ? $IMAP->decode_header($headers->subject) : 'roundcube') . '.eml';
-    $browser = new rcube_browser;
-    
+    $browser = $RCMAIL->output->browser;
+
     if ($browser->ie && $browser->ver < 7)
       $filename = rawurlencode(abbreviate_string($filename, 55));
     else if ($browser->ie)
@@ -42,7 +42,7 @@
     header("Content-Length: {$headers->size}");
     header("Content-Disposition: attachment; filename=\"$filename\"");
   }
-  
+
   $IMAP->print_raw_body($uid);
 }
 else

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list