OCS API calls will always return English messages

This commit is contained in:
Thomas Müller 2014-04-15 15:32:08 +02:00
parent e125dc60cd
commit 596177727a
1 changed files with 3 additions and 0 deletions

View File

@ -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();