Some obvious bug fixes for i18n

This commit is contained in:
Diogo Cordeiro
2019-04-25 22:21:15 +01:00
parent bf7f17474d
commit 9cc7df51d6
4 changed files with 158 additions and 112 deletions

View File

@@ -197,7 +197,7 @@ function common_language()
if (common_config('site', 'langdetect')) {
$httplang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : null;
if (!empty($httplang)) {
$language = client_prefered_language($httplang);
$language = client_preferred_language($httplang);
if ($language)
return $language;
}