Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-15 17:32:08 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-15 17:32:08 +0400
commit596177727afbab9950d29d44af94e4d03814ce72 (patch)
treec2ed018bc57298abc089d7124bd44528a5e0cc21 /ocs
parente125dc60cda3ad3bdbee1ebfc075669f5b808600 (diff)
OCS API calls will always return English messages
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 62a3511e611..d69904fc495 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -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();