diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-07 10:52:17 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-07 11:10:04 +0200 |
commit | 9f3d9b5b239b9ebb3ddfec1c9d2d8d2a54be8f2a (patch) | |
tree | fa0c73bf29d8211c4a48acc8f29dcf71ded3deb5 /ocs | |
parent | 536650c02f719cc810a0538c36113b2fa96db605 (diff) | |
download | nextcloud-server-9f3d9b5b239b9ebb3ddfec1c9d2d8d2a54be8f2a.tar.gz nextcloud-server-9f3d9b5b239b9ebb3ddfec1c9d2d8d2a54be8f2a.zip |
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 0228bc6e66cbcb2848eacb41f1de6e7f63ebcb65
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>
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index e92250b7e38..80df64f4ed6 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -54,9 +54,6 @@ try { // load all apps to get all api routes properly setup OC_App::loadApps(); - // force language as given in the http request - \OC::$server->getL10NFactory()->setLanguageFromRequest(); - OC::$server->getRouter()->match('/ocs'.\OC::$server->getRequest()->getRawPathInfo()); return; } catch (ResourceNotFoundException $e) { |