Revert "Web: Allow to configure whether we'll consider Accept-Language or not"
This reverts commit 87505aff7c
.
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…
Reference in New Issue