Respect http header 'Accept-Language' on ocs and remote.php calls

This commit is contained in:
Thomas Müller
2015-02-24 17:42:26 +01:00
parent 33b11682f9
commit 2367797c17
3 changed files with 48 additions and 37 deletions
+3
View File
@@ -29,6 +29,9 @@ try {
exit;
}
// force language as given in the http request
\OC_L10N::setLanguageFromRequest();
$file=ltrim($file, '/');
$parts=explode('/', $file, 2);