Ensure the [] are properly grouped with the <a> when displaying a link to
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 29 Jun 2011 13:20:49 +0000 (15:20 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 29 Jun 2011 13:20:49 +0000 (15:20 +0200)
an attachment.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
banana/mimepart.inc.php

index 032ae4d..c29221e 100644 (file)
@@ -485,11 +485,11 @@ class BananaMimePart
             if (!$part) {
                 $part = $this->content_type;
             }
-            return '[' . Banana::$page->makeImgLink(array('group' => Banana::$group,
+            return '<span>[' . Banana::$page->makeImgLink(array('group' => Banana::$group,
                                                  'artid' => Banana::$artid,
                                                  'part'  => $part,
                                                  'text'  => $this->filename ? $this->filename : $this->content_type,
-                                                 'img'   => 'save')) . ']';
+                                                 'img'   => 'save')) . ']</span>';
         } elseif ($type == 'multipart' && ($subtype == 'mixed' || $subtype == 'report')) {
             $text = '';
             foreach ($this->multipart as &$part) {