Don't force the use of Accept-Language anymore

This is not intended anymore, since it falls back to force english
when the header is not set. Also 0228bc6e66
makes clear that the order should be:

1. User setting
2. Accept language
3. Admin default

This is the case since the commit from above, unless via OCS and DAV.
Both forced to accept-language falling back to english.
By removing the force, it now also matches the w3 priority list:
https://www.w3.org/International/questions/qa-lang-priorities

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2017-04-07 10:52:17 +02:00
parent 536650c02f
commit 9f3d9b5b23
5 changed files with 21 additions and 57 deletions
-3
View File
@@ -136,9 +136,6 @@ try {
throw new RemoteException('Path not found', OC_Response::STATUS_NOT_FOUND);
}
// force language as given in the http request
\OC::$server->getL10NFactory()->setLanguageFromRequest();
$file=ltrim($file, '/');
$parts=explode('/', $file, 2);