瀏覽代碼

Merge branch 'trunk'

Andy 5 年之前
父節點
當前提交
5034e16943
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      functions/mime.php

+ 7 - 1
functions/mime.php

@@ -652,8 +652,14 @@ function buildAttachmentArray($message, $exclude_id, $mailbox, $id) {
         $this_attachment['ContentType'] = sm_encode_html_special_chars($type0 .'/'. $type1);
         $this_attachment['ContentType'] = sm_encode_html_special_chars($type0 .'/'. $type1);
         $this_attachment['OtherLinks'] = array();
         $this_attachment['OtherLinks'] = array();
         foreach ($links as $val) {
         foreach ($links as $val) {
-            if ($val['text']==_("Download") || $val['text'] == _("View"))
+            if ($val['text']==_("Download")) {
+                $this_attachment['DownloadHREF'] = $val['href'];
                 continue;
                 continue;
+            }
+            if ($val['text']==_("View")) {
+                $this_attachment['ViewHREF'] = $val['href'];
+                continue;
+            }
             if (empty($val['text']) && empty($val['extra']))
             if (empty($val['text']) && empty($val['extra']))
                 continue;
                 continue;