]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use correct class for avatar deletion so memcached is updated
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 13 Nov 2008 06:38:50 +0000 (01:38 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 13 Nov 2008 06:38:50 +0000 (01:38 -0500)
darcs-hash:20081113063850-5ed1f-15c314239e2114b52beb7c83b7006b69a48ec5c3.gz

classes/Profile.php

index a37821e1be5681842877b9abdaa1aeb235cef00f..794dc1de93c8857e2f23c92f30930342fb7890c2 100644 (file)
@@ -118,7 +118,7 @@ class Profile extends Memcached_DataObject
        }
 
        function delete_avatars() {
-               $avatar = DB_DataObject::factory('avatar');
+               $avatar = new Avatar();
                $avatar->profile_id = $this->id;
                $avatar->find();
                while ($avatar->fetch()) {