summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-01-15 11:09:37 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-01-26 14:02:31 +0100
commit043625ee522357e25bb786c4b439c90ab21bbfd1 (patch)
tree633c64268cb5a302436ba61d20eeb7eaf7a5e516 /lib/private/server.php
parent29a93064299f57584c6aadc8a6c56b51715d7269 (diff)
downloadnextcloud-server-043625ee522357e25bb786c4b439c90ab21bbfd1.tar.gz
nextcloud-server-043625ee522357e25bb786c4b439c90ab21bbfd1.zip
Move findLanguage() and setLanguageFromRequest() to factory
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php7
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();