Can't call IMP_Contents construct directly
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Feb 2009 18:17:58 +0000 (11:17 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 11 Feb 2009 18:27:23 +0000 (11:27 -0700)
imp/view.php

index af5c5fc..31e294e 100644 (file)
@@ -60,7 +60,7 @@ if ($actionID == 'compose_attach_preview') {
 
     /* Create a dummy IMP_Contents() object so we can use the view code below.
      * Then use the 'view_attach' handler to output. */
-    $contents = new IMP_Contents($mime);
+    $contents = &IMP_Contents::singleton($mime);
     $actionID = 'view_attach';
     $id = $mime->getMimeId();
 } else {