]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/File_to_post.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / classes / File_to_post.php
index 35d1a0dd545ff5e638463a9968fe65593c4dacad..95ac660f47972b29091184e171f0b6896488d345 100644 (file)
@@ -69,7 +69,7 @@ class File_to_post extends Managed_DataObject
                 $f2p->post_id = $notice_id;
                 $f2p->insert();
                 
-                $f = File::staticGet($file_id);
+                $f = File::getKV($file_id);
 
                 if (!empty($f)) {
                     $f->blowCache();
@@ -91,7 +91,7 @@ class File_to_post extends Managed_DataObject
 
     function delete()
     {
-        $f = File::staticGet('id', $this->file_id);
+        $f = File::getKV('id', $this->file_id);
         if (!empty($f)) {
             $f->blowCache();
         }