浏览代码

change for new method of getting display entity

stekkel 23 年之前
父节点
当前提交
58d7e529b1
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/read_body.php

+ 4 - 3
src/read_body.php

@@ -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>" .