mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
Revert "Web: Allow to configure whether we'll consider Accept-Language or not"
This reverts commit 87505aff7ce63c83072e7ea4d7415d72d4281ddd.
This commit is contained in:
parent
87505aff7c
commit
3190b7dea3
@ -554,7 +554,7 @@ class Web extends EmbeddedWeb
|
||||
) {
|
||||
return $locale;
|
||||
}
|
||||
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) && $this->config->get('global', 'use_accept_language', true)) {
|
||||
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
return Translator::getPreferredLocaleCode($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
}
|
||||
return Translator::DEFAULT_LOCALE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user