From ade32c5593c555591eb5cf859ea64b8ef7fdaaf8 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Wed, 29 Jun 2011 15:20:49 +0200 Subject: [PATCH] Ensure the [] are properly grouped with the when displaying a link to an attachment. Signed-off-by: Florent Bruneau --- banana/mimepart.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/banana/mimepart.inc.php b/banana/mimepart.inc.php index 032ae4d..c29221e 100644 --- a/banana/mimepart.inc.php +++ b/banana/mimepart.inc.php @@ -485,11 +485,11 @@ class BananaMimePart if (!$part) { $part = $this->content_type; } - return '[' . Banana::$page->makeImgLink(array('group' => Banana::$group, + return '[' . Banana::$page->makeImgLink(array('group' => Banana::$group, 'artid' => Banana::$artid, 'part' => $part, 'text' => $this->filename ? $this->filename : $this->content_type, - 'img' => 'save')) . ']'; + 'img' => 'save')) . ']'; } elseif ($type == 'multipart' && ($subtype == 'mixed' || $subtype == 'report')) { $text = ''; foreach ($this->multipart as &$part) { -- 2.1.4