From 87505aff7ce63c83072e7ea4d7415d72d4281ddd Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 8 Sep 2017 11:55:15 +0200 Subject: [PATCH] Web: Allow to configure whether we'll consider Accept-Language or not --- library/Icinga/Application/Web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index db480abde..6e9c50a41 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -554,7 +554,7 @@ class Web extends EmbeddedWeb ) { return $locale; } - if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { + if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && $this->config->get('global', 'use_accept_language', true)) { return Translator::getPreferredLocaleCode($_SERVER['HTTP_ACCEPT_LANGUAGE']); } return Translator::DEFAULT_LOCALE;