From: Evan Prodromou Date: Sun, 18 May 2008 19:39:51 +0000 (-0400) Subject: better deletion of old avatars X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6396504aa60a3ae7505211ab7e99733b1c74267b;p=quix0rs-gnu-social.git better deletion of old avatars darcs-hash:20080518193951-84dde-cc45fbfba1f11a4ae2f629cc862e02a14743f2c1.gz --- diff --git a/actions/avatar.php b/actions/avatar.php index 374cef4132..16a3dd48cf 100644 --- a/actions/avatar.php +++ b/actions/avatar.php @@ -205,8 +205,10 @@ class AvatarAction extends SettingsAction { $avatar->profile_id = $user->id; $avatar->find(); while ($avatar->fetch()) { + unlink(common_avatar_path($avatar->filename)); $avatar->delete(); } + return true; } }