Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit a464ef2

Browse files
author
Jens Krumsieck
committed
workx
1 parent 3050e77 commit a464ef2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

files/lib/data/link/Link.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public function getAttachments() {
6868
'canDownload' => WCF::getSession()->getPermission('user.linklist.link.canDownloadAttachments'),
6969
'canViewPreview' => WCF::getSession()->getPermission('user.linklist.link.canDownloadAttachments')
7070
));
71-
7271
AttachmentBBCode::setAttachmentList($attachmentList);
7372
return $attachmentList;
7473
}

files/lib/data/link/LinkAction.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class LinkAction extends AbstractDatabaseObjectAction implements IClipboardActio
4646
public function create(){
4747
// count attachments
4848
if (isset($this->parameters['attachmentHandler']) && $this->parameters['attachmentHandler'] !== null) {
49-
$data['attachments'] = count($this->parameters['attachmentHandler']);
49+
$this->parameters['data']['attachments'] = count($this->parameters['attachmentHandler']);
5050
}
5151
$object = call_user_func(array($this->className, 'create'), $this->parameters['data']);
5252

0 commit comments

Comments
 (0)