diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-15 11:09:37 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-26 14:02:31 +0100 |
commit | 043625ee522357e25bb786c4b439c90ab21bbfd1 (patch) | |
tree | 633c64268cb5a302436ba61d20eeb7eaf7a5e516 /ocs | |
parent | 29a93064299f57584c6aadc8a6c56b51715d7269 (diff) | |
download | nextcloud-server-043625ee522357e25bb786c4b439c90ab21bbfd1.tar.gz nextcloud-server-043625ee522357e25bb786c4b439c90ab21bbfd1.zip |
Move findLanguage() and setLanguageFromRequest() to factory
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index 4371b0b604a..39a8f4e468f 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -46,7 +46,7 @@ try { OC_App::loadApps(); // force language as given in the http request - \OC_L10N::setLanguageFromRequest(); + \OC::$server->getL10NFactory()->setLanguageFromRequest(); OC::$server->getRouter()->match('/ocs'.\OC::$server->getRequest()->getRawPathInfo()); } catch (ResourceNotFoundException $e) { |