mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
OCS API calls will always return English messages
This commit is contained in:
parent
e125dc60cd
commit
596177727a
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue