From 6a2e51b4d9706ed1f4d8d6bd6be3a8316dce4c24 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 12 Oct 2016 14:08:12 +0200 Subject: [PATCH] make AvatarManager use LazyRootFolder, fixes #1251 Signed-off-by: Arthur Schiwon --- lib/private/Files/Node/LazyRoot.php | 2 +- lib/private/Server.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/Node/LazyRoot.php b/lib/private/Files/Node/LazyRoot.php index 1203fc4d162..60af2a64227 100644 --- a/lib/private/Files/Node/LazyRoot.php +++ b/lib/private/Files/Node/LazyRoot.php @@ -139,7 +139,7 @@ class LazyRoot implements IRootFolder { * @inheritDoc */ public function get($path) { - $this->__call(__FUNCTION__, func_get_args()); + return $this->__call(__FUNCTION__, func_get_args()); } /** diff --git a/lib/private/Server.php b/lib/private/Server.php index f48ce5f5c8b..88bb5282af3 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -359,7 +359,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService('AvatarManager', function (Server $c) { return new AvatarManager( $c->getUserManager(), - $c->getRootFolder(), + $c->getLazyRootFolder(), $c->getL10N('lib'), $c->getLogger() ); -- 2.39.5