From fc75b349ec2e22e36a3a8c44e3c8e0e501219144 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 3 Jan 2017 14:49:46 +0100 Subject: [PATCH] Always use the filename for non-image attachments --- .../install/files/lib/system/bbcode/AttachmentBBCode.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php index 1ce39dff51..32454aa732 100644 --- a/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php @@ -131,7 +131,7 @@ class AttachmentBBCode extends AbstractBBCode { // file return StringUtil::getAnchorTag(LinkHandler::getInstance()->getLink('Attachment', [ 'object' => $attachment - ]), ((!empty($content) && $content != $attachmentID) ? $content : $attachment->filename)); + ]), $attachment->filename); } } -- 2.20.1