[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14870] trunk/squirrelmail/functions/mime.php
From:       pdontthink--- via squirrelmail-cvs <squirrelmail-cvs () lists ! sourceforge ! net>
Date:       2020-07-11 7:08:51
Message-ID: 1594451331.764673.493 () sfp-scm-7 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]

Revision: 14870
          http://sourceforge.net/p/squirrelmail/code/14870
Author:   pdontthink
Date:     2020-07-11 07:08:51 +0000 (Sat, 11 Jul 2020)
Log Message:
-----------
Allow plugins to provide their own view/download attachment links

Modified Paths:
--------------
    trunk/squirrelmail/functions/mime.php

Modified: trunk/squirrelmail/functions/mime.php
===================================================================
--- trunk/squirrelmail/functions/mime.php	2020-07-11 06:12:50 UTC (rev 14869)
+++ trunk/squirrelmail/functions/mime.php	2020-07-11 07:08:51 UTC (rev 14870)
@@ -648,8 +648,14 @@
         $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;
 

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.



-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic