From 83cf04bd862a96623e20ba8cafd09ba8582c3871 Mon Sep 17 00:00:00 2001 From: indiri69 Date: Wed, 10 Dec 2003 22:10:36 +0000 Subject: [PATCH] Reinsert Download as a file link git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6261 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 0f810a82..471d2332 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -393,12 +393,14 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma translateText($body, $wrap_at, $body_message->header->getParameter('charset')); } - $link = 'read_body.php?passed_id=' . $id . '&ent_id='.$ent_num. + $link = 'passed_id=' . $id . '&ent_id='.$ent_num. '&mailbox=' . $urlmailbox .'&sort=' . $sort . '&startMessage=' . $startMessage . '&show_more=0'; if (isset($passed_ent_id)) { $link .= '&passed_ent_id='.$passed_ent_id; } + $body .= '
' . _("Download this as a file") . ''; if ($view_unsafe_images) { $text = _("Hide Unsafe Images"); } else { @@ -409,8 +411,10 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma $text = ''; } } - $body .= '
'.$text. - '

' . "\n"; + if($text != '') { + $body .= ' | ' . $text . ''; + } + $body .= '

' . "\n"; } return $body; } -- 2.25.1