diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-30 18:00:53 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-30 18:00:53 +0300 |
commit | 2ab503f70a507c6bc0d7652b223160fd5dad8041 (patch) | |
tree | 6af35fdaf20e25c83f797a785934a094c3e76cf9 /lib | |
parent | cdff09835716a98b702aec86e12aa6600218077d (diff) | |
parent | 3cadc45ca5020d1ca6ca511e73e576be150e4c44 (diff) |
Merge pull request #23641 from owncloud/avatar-remove-9
[9.0] only remove avatars from the folder we store them in
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/avatar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/avatar.php b/lib/private/avatar.php index 4b9d3d82404..3f8038360a4 100644 --- a/lib/private/avatar.php +++ b/lib/private/avatar.php @@ -134,7 +134,7 @@ class Avatar implements IAvatar { */ public function remove () { $regex = '/^avatar\.([0-9]+\.)?(jpg|png)$/'; - $avatars = $this->folder->search('avatar'); + $avatars = $this->folder->getDirectoryListing(); foreach ($avatars as $avatar) { if (preg_match($regex, $avatar->getName())) { |