From: Tim Düsterhus Date: Sun, 14 Dec 2014 19:31:28 +0000 (+0100) Subject: Fix removal of old gravatars in AvatarEditForm X-Git-Tag: 2.1.0_Beta_2~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c299b416f1f201721c85d10d650397ac5a3beb2f;p=GitHub%2FWoltLab%2FWCF.git Fix removal of old gravatars in AvatarEditForm --- diff --git a/wcfsetup/install/files/lib/form/AvatarEditForm.class.php b/wcfsetup/install/files/lib/form/AvatarEditForm.class.php index 41c9d0c1d2..3d49b6872e 100644 --- a/wcfsetup/install/files/lib/form/AvatarEditForm.class.php +++ b/wcfsetup/install/files/lib/form/AvatarEditForm.class.php @@ -129,7 +129,7 @@ class AvatarEditForm extends AbstractForm { // reset gravatar cache if ($this->avatarType == 'gravatar') { - $pattern = WCF_DIR . sprintf(Gravatar::GRAVATAR_CACHE_LOCATION, md5(mb_strtolower(WCF::getUser()->email)), '*'); + $pattern = WCF_DIR . sprintf(Gravatar::GRAVATAR_CACHE_LOCATION, md5(mb_strtolower(WCF::getUser()->email)), '*', '*'); $files = glob($pattern); if (!empty($files)) { foreach ($files as $file) {