From: Evan Prodromou Date: Thu, 13 Nov 2008 06:38:50 +0000 (-0500) Subject: use correct class for avatar deletion so memcached is updated X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34528df6d9de96a4447e851704af739d9ea21950;p=quix0rs-gnu-social.git use correct class for avatar deletion so memcached is updated darcs-hash:20081113063850-5ed1f-15c314239e2114b52beb7c83b7006b69a48ec5c3.gz --- diff --git a/classes/Profile.php b/classes/Profile.php index a37821e1be..794dc1de93 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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()) {