From: Michael M Slusarz Date: Wed, 11 Feb 2009 18:17:58 +0000 (-0700) Subject: Can't call IMP_Contents construct directly X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=02c4738834b52309b4741573a7dbcf99bfe7619e;p=horde.git Can't call IMP_Contents construct directly --- 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 {