From: Florent Bruneau Date: Wed, 29 Jun 2011 13:20:49 +0000 (+0200) Subject: Ensure the [] are properly grouped with the when displaying a link to X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=sidebyside;h=ade32c5593c555591eb5cf859ea64b8ef7fdaaf8;p=banana.git Ensure the [] are properly grouped with the when displaying a link to an attachment. Signed-off-by: Florent Bruneau --- 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) {