From: Michael M Slusarz Date: Thu, 13 Nov 2008 04:52:24 +0000 (-0700) Subject: Track some IMP_Contents changes. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9a6792d4afd01a377df3e9c7524704acf10d07b6;p=horde.git Track some IMP_Contents changes. --- diff --git a/imp/thread.php b/imp/thread.php index ee4be7e12..7875fd5cf 100644 --- a/imp/thread.php +++ b/imp/thread.php @@ -97,9 +97,8 @@ foreach ($loop_array as $mbox => $idxlist) { $curr_msg = $curr_tree = array(); $contents = &IMP_Contents::singleton($idx . IMP::IDX_SEP . $mbox); $mime_id = $contents->findBody(); - $mime_part = $contents->getMIMEPart($mime_id); - if ($contents->canDisplayInline($mime_part)) { - $curr_msg['body'] = $contents->renderMIMEPart($mime_part); + if ($contents->canDisplay($mime_id, IMP_Contents::RENDER_INLINE)) { + $curr_msg['body'] = $contents->renderMIMEPart($mime_id); } else { $curr_msg['body'] = '' . _("There is no text that can be displayed inline.") . ''; }