diff options
Diffstat (limited to 'lib/private/server.php')
-rw-r--r-- | lib/private/server.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index b8f4bdb53fe..81929d0c7b3 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -262,8 +262,11 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService('AppConfig', function (Server $c) { return new \OC\AppConfig($c->getDatabaseConnection()); }); - $this->registerService('L10NFactory', function ($c) { - return new \OC\L10N\Factory(); + $this->registerService('L10NFactory', function (Server $c) { + return new \OC\L10N\Factory( + $c->getConfig(), + $c->getRequest() + ); }); $this->registerService('URLGenerator', function (Server $c) { $config = $c->getConfig(); |