]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhoto/Photo.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / plugins / GNUsocialPhoto / Photo.php
index 2bbbe91fd57c251f89dcdedc25b5e03a366f3797..be354928fbc6a61e8ff5139200dec6435441b16d 100644 (file)
@@ -46,14 +46,14 @@ class Photo extends Managed_DataObject
     public $description;       // text
     public $profile_id;        // int
 
-    public function getByNotice($notice)
+    public static function getByNotice($notice)
     {
-        return self::staticGet('uri', $notice->uri);
+        return self::getKV('uri', $notice->uri);
     }
 
     public function getNotice()
     {
-        return Notice::staticGet('uri', $this->uri);
+        return Notice::getKV('uri', $this->uri);
     }
 
     public static function schemaDef()