Explorar o código

Merge branch 'trunk'

Andy %!s(int64=5) %!d(string=hai) anos
pai
achega
5034e16943
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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['OtherLinks'] = array();
         foreach ($links as $val) {
-            if ($val['text']==_("Download") || $val['text'] == _("View"))
+            if ($val['text']==_("Download")) {
+                $this_attachment['DownloadHREF'] = $val['href'];
                 continue;
+            }
+            if ($val['text']==_("View")) {
+                $this_attachment['ViewHREF'] = $val['href'];
+                continue;
+            }
             if (empty($val['text']) && empty($val['extra']))
                 continue;