We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6396504a authored by Evan Prodromou's avatar Evan Prodromou

better deletion of old avatars

darcs-hash:20080518193951-84dde-cc45fbfba1f11a4ae2f629cc862e02a14743f2c1.gz
parent a4789e79
......@@ -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;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment