Track some IMP_Contents changes.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 04:52:24 +0000 (21:52 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 04:52:24 +0000 (21:52 -0700)
imp/thread.php

index ee4be7e..7875fd5 100644 (file)
@@ -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'] = '<em>' . _("There is no text that can be displayed inline.") . '</em>';
         }