From: <pdo...@us...> - 2020-07-11 07:08:52
|
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. |