Fix removal of old gravatars in AvatarEditForm
authorTim Düsterhus <timwolla@googlemail.com>
Sun, 14 Dec 2014 19:31:28 +0000 (20:31 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sun, 14 Dec 2014 19:31:28 +0000 (20:31 +0100)
wcfsetup/install/files/lib/form/AvatarEditForm.class.php

index 41c9d0c1d2307a9ebcc93d5bb8dbb152f430f801..3d49b6872ebc8088cfb8e7805cc69a51fafed5dc 100644 (file)
@@ -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) {