diff options
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index 62a3511e611..d69904fc495 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -30,6 +30,9 @@ try { // load all apps to get all api routes properly setup OC_App::loadApps(); + // api calls always will return English + \OC_L10N::forceLanguage('en'); + OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo()); } catch (ResourceNotFoundException $e) { OC_API::setContentType(); |