summaryrefslogtreecommitdiff
path: root/actions/avatar.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/avatar.php')
-rw-r--r--actions/avatar.php2
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;
}
}