]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/attachmentlist.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / lib / attachmentlist.php
index cf7c9acc147fe8ab24ddc0c525f5b6c5a43fff16..1d5be73714ada190a4690412b29918137e6077e4 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();
 
@@ -152,7 +152,7 @@ class AttachmentListItem extends Widget
     {
         parent::__construct($out);
         $this->attachment  = $attachment;
-        $this->oembed = File_oembed::staticGet('file_id', $this->attachment->id);
+        $this->oembed = File_oembed::getKV('file_id', $this->attachment->id);
     }
 
     function title() {
@@ -222,7 +222,7 @@ class AttachmentListItem extends Widget
      */
     function getThumbInfo()
     {
-        $thumbnail = File_thumbnail::staticGet('file_id', $this->attachment->id);
+        $thumbnail = File_thumbnail::getKV('file_id', $this->attachment->id);
         if ($thumbnail) {
             $maxWidth = common_config('attachments', 'thumb_width');
             $maxHeight = common_config('attachments', 'thumb_height');