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
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-24 19:42:26 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 12:38:38 +0300
commit2367797c17aafe0f0570477ff653894f3033e97c (patch)
treea838d249abd8d65bfb985309e6d080fb65667210 /remote.php
parent33b11682f9826346f48b7587161dc5a43944a063 (diff)
Respect http header 'Accept-Language' on ocs and remote.php calls
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/remote.php b/remote.php
index 80173441e90..101b19a807d 100644
--- a/remote.php
+++ b/remote.php
@@ -29,6 +29,9 @@ try {
exit;
}
+ // force language as given in the http request
+ \OC_L10N::setLanguageFromRequest();
+
$file=ltrim($file, '/');
$parts=explode('/', $file, 2);