From 02c4738834b52309b4741573a7dbcf99bfe7619e Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 11 Feb 2009 11:17:58 -0700 Subject: [PATCH] Can't call IMP_Contents construct directly --- imp/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/view.php b/imp/view.php index af5c5fcea..31e294e57 100644 --- a/imp/view.php +++ b/imp/view.php @@ -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 { -- 2.11.0