From c22697e09ed063df0d035db36e04f0e0811d599d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 29 Mar 2016 18:52:17 +0200 Subject: only remove avatars from the folder we store them in --- lib/private/avatar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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())) { -- cgit v1.2.3