OCS API calls will always return English messages
This commit is contained in:
parent
e125dc60cd
commit
596177727a
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue