change for new method of getting display entity
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 30 May 2002 14:37:37 +0000 (14:37 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 30 May 2002 14:37:37 +0000 (14:37 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2910 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index cedc34328b61780dda5f50eba39185c6eb1e7bf9..2d6dc5553f05088dc3a78710fb1c8b8d91775bca 100644 (file)
@@ -583,7 +583,9 @@ $dateString = getLongDateString($message->header->date);
 /**
  * What do we reply to -- text only, if possible
  */
-$ent_num = findDisplayEntity($message);
+$ent_ar = findDisplayEntity($message);
+/* first step in displaying multiple entities */
+$ent_num = $ent_ar[0];
 
 /** TEXT STRINGS DEFINITIONS **/
 $echo_more = _("more");
@@ -1071,11 +1073,10 @@ echo '</TABLE>' .
     '   </TD></TR>' .
     '</TABLE>';
 flush();
-
 echo "<TABLE CELLSPACING=0 WIDTH=\"97%\" BORDER=0 ALIGN=CENTER CELLPADDING=0>\n" .
     "   <TR><TD BGCOLOR=\"$color[4]\" WIDTH=\"100%\">\n" .
     '<BR>'.
-    formatBody($imapConnection, $message, $color, $wrap_at).
+    formatBody($imapConnection, $message, $color, $wrap_at, $ent_num).
     '</TD></TR></TABLE>' .
     '<TABLE CELLSPACING="0" WIDTH="100%" BORDER="0" ALIGN="CENTER" CELLPADDING="0">' . "\n" .
     "   <TR><TD BGCOLOR=\"$color[9]\">&nbsp;</TD></TR>" .