]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/bookmarkforurl.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / Bookmark / bookmarkforurl.php
index e4dedf4a48c7c38abb69c22f3a0c7593dd466aad..4e6de9bffac6dad6128e41cbafcf6f46b36c89f1 100644 (file)
@@ -78,7 +78,7 @@ class BookmarkforurlAction extends Action
             throw new ClientException(_('Invalid URL.'), 400);
         }
 
-        $f = File::staticGet('url', $this->url);
+        $f = File::getKV('url', $this->url);
 
         if (empty($url)) { 
            $f = File::processNew($this->url);
@@ -87,11 +87,11 @@ class BookmarkforurlAction extends Action
         // How about now?
 
         if (!empty($f)) {
-            $this->oembed    = File_oembed::staticGet('file_id', $f->id);
+            $this->oembed    = File_oembed::getKV('file_id', $f->id);
             if (!empty($this->oembed)) {
                 $this->title = $this->oembed->title;
             }
-            $this->thumbnail = File_thumbnail::staticGet('file_id', $f->id);
+            $this->thumbnail = File_thumbnail::getKV('file_id', $f->id);
         }
 
         return true;