aboutsummaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php2
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) {