Skip to content
Snippets Groups Projects
Commit 59617772 authored by Thomas Müller's avatar Thomas Müller
Browse files

OCS API calls will always return English messages

parent e125dc60
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,9 @@ try { ...@@ -30,6 +30,9 @@ try {
// load all apps to get all api routes properly setup // load all apps to get all api routes properly setup
OC_App::loadApps(); OC_App::loadApps();
// api calls always will return English
\OC_L10N::forceLanguage('en');
OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo()); OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
} catch (ResourceNotFoundException $e) { } catch (ResourceNotFoundException $e) {
OC_API::setContentType(); OC_API::setContentType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment