OCS API calls will always return English messages

remotes/origin/ldap_group_count
Thomas Müller 10 years ago
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…
Cancel
Save