diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-18 15:39:51 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-18 15:39:51 -0400 |
commit | 6396504aa60a3ae7505211ab7e99733b1c74267b (patch) | |
tree | 2266a82acf0697d116240c860a216caa439a60ec /actions | |
parent | a4789e79c8ed2ea02f4f8bec89f470e6bd488e58 (diff) |
better deletion of old avatars
darcs-hash:20080518193951-84dde-cc45fbfba1f11a4ae2f629cc862e02a14743f2c1.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/avatar.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/avatar.php b/actions/avatar.php index 374cef413..16a3dd48c 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; } } |