Correctly buffer status output
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 8 Jan 2009 03:11:20 +0000 (20:11 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 8 Jan 2009 05:09:16 +0000 (22:09 -0700)
imp/compose.php

index a0b4a9f..179442f 100644 (file)
@@ -812,7 +812,7 @@ if ($redirect) {
     /* Prepare the redirect template. */
     $t->set('mailbox', htmlspecialchars($thismailbox));
     $t->set('index', htmlspecialchars($index));
-    $t->set('status', IMP::status());
+    $t->set('status', Util::bufferOutput(array('IMP', 'status')));
     $t->set('title', htmlspecialchars($title));
     $t->set('token', IMP::getRequestToken('imp.compose'));
 
@@ -931,7 +931,7 @@ if ($redirect) {
     $t->set('hidden', $hidden_val);
 
     $t->set('title', htmlspecialchars($title));
-    $t->set('status', IMP::status());
+    $t->set('status', Util::bufferOutput(array('IMP', 'status')));
     $t->set('send_msg_ak', Horde::getAccessKeyAndTitle(_("_Send Message")));
     if ($conf['user']['allow_folders'] && !$readonly_drafts) {
         $t->set('save_draft_ak', Horde::getAccessKeyAndTitle(_("Save _Draft")));