X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FFile_to_post.php;h=e53b1ebb4cfa38dc14b6a629ff7cd9f2487d1712;hb=79e3acf0f0aa5c13bf042e471c7977b5e4f1239f;hp=35d1a0dd545ff5e638463a9968fe65593c4dacad;hpb=1a9a8ea73032b0ded09a8ea9a4c0511401507090;p=quix0rs-gnu-social.git diff --git a/classes/File_to_post.php b/classes/File_to_post.php index 35d1a0dd54..e53b1ebb4c 100644 --- a/classes/File_to_post.php +++ b/classes/File_to_post.php @@ -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(); @@ -84,14 +84,9 @@ class File_to_post extends Managed_DataObject } } - function pkeyGet($kv) - { - return Memcached_DataObject::pkeyGet('File_to_post', $kv); - } - function delete() { - $f = File::staticGet('id', $this->file_id); + $f = File::getKV('id', $this->file_id); if (!empty($f)) { $f->blowCache(); }