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

Commit

Permalink
workx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Krumsieck committed Dec 15, 2013
1 parent 3050e77 commit a464ef2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion files/lib/data/link/Link.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function getAttachments() {
'canDownload' => WCF::getSession()->getPermission('user.linklist.link.canDownloadAttachments'),
'canViewPreview' => WCF::getSession()->getPermission('user.linklist.link.canDownloadAttachments')
));

AttachmentBBCode::setAttachmentList($attachmentList);
return $attachmentList;
}
Expand Down
2 changes: 1 addition & 1 deletion files/lib/data/link/LinkAction.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LinkAction extends AbstractDatabaseObjectAction implements IClipboardActio
public function create(){
// count attachments
if (isset($this->parameters['attachmentHandler']) && $this->parameters['attachmentHandler'] !== null) {
$data['attachments'] = count($this->parameters['attachmentHandler']);
$this->parameters['data']['attachments'] = count($this->parameters['attachmentHandler']);
}
$object = call_user_func(array($this->className, 'create'), $this->parameters['data']);

Expand Down

0 comments on commit a464ef2

Please sign in to comment.