Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-03-29 19:52:17 +0300
committerRobin Appelman <icewind@owncloud.com>2016-03-30 11:25:37 +0300
commit3cadc45ca5020d1ca6ca511e73e576be150e4c44 (patch)
tree4419c4f168d3c7d79b46e7875dc63208d28b1335 /lib
parent456035a750602d6f47384c170e25063684774043 (diff)
only remove avatars from the folder we store them in
Diffstat (limited to 'lib')
-rw-r--r--lib/private/avatar.php2
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())) {