Only show text/plain if show_html_default=0
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 16:26:02 +0000 (16:26 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 16:26:02 +0000 (16:26 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3414 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/printer_friendly_bottom.php

index 88fdaf9..9e8aba7 100644 (file)
@@ -45,7 +45,11 @@ $subject = trim(decodeHeader($rfc822_header->subject));
 $cc = decodeHeader($rfc822_header->getAddr_s('cc'));
 $to = decodeHeader($rfc822_header->getAddr_s('to'));
 
-$ent_ar = $message->findDisplayEntity();
+if ($show_html_default == 1) {
+    $ent_ar = $message->findDisplayEntity(array());
+} else {
+    $ent_ar = $message->findDisplayEntity(array(), array('text/plain'));
+}
 $body = '';
 if ($ent_ar[0] != '') {
   for ($i = 0; $i < count($ent_ar); $i++) {