]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use Notice::attachments() to get attachments for a notice
authorEvan Prodromou <evan@status.net>
Tue, 2 Aug 2011 22:22:06 +0000 (18:22 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 2 Aug 2011 22:22:06 +0000 (18:22 -0400)
lib/attachmentlist.php

index cf7c9acc147fe8ab24ddc0c525f5b6c5a43fff16..a93a6842bbe32648c009f735a0fab7d325bbf5f6 100644 (file)
@@ -76,7 +76,7 @@ class AttachmentList extends Widget
      */
     function show()
     {
-        $att = File::getAttachments($this->notice->id);
+       $att = $this->notice->attachments();
         if (empty($att)) return 0;
         $this->showListStart();