From 9a6792d4afd01a377df3e9c7524704acf10d07b6 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 12 Nov 2008 21:52:24 -0700 Subject: [PATCH] Track some IMP_Contents changes. --- imp/thread.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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.") . ''; } -- 2.11.0