summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-24 17:42:26 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 10:38:38 +0100
commit2367797c17aafe0f0570477ff653894f3033e97c (patch)
treea838d249abd8d65bfb985309e6d080fb65667210 /remote.php
parent33b11682f9826346f48b7587161dc5a43944a063 (diff)
downloadnextcloud-server-2367797c17aafe0f0570477ff653894f3033e97c.tar.gz
nextcloud-server-2367797c17aafe0f0570477ff653894f3033e97c.zip
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);