From c299b416f1f201721c85d10d650397ac5a3beb2f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 14 Dec 2014 20:31:28 +0100 Subject: [PATCH] Fix removal of old gravatars in AvatarEditForm --- wcfsetup/install/files/lib/form/AvatarEditForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.20.1