Fix ternary operator ambiguity deprecation in Utils\L10n

This commit is contained in:
Hypolite Petovan 2023-07-31 01:10:37 +02:00
parent 8bd1cb11ae
commit 95ffadb19f

View file

@ -165,12 +165,12 @@ class L10n
$foundLang = $language;
}
if (strtolower($key) == strtolower(str_replace('-', '_', $locale))) {
$foundLocale = true;
$foundLocale = $language;
break;
}
}
return $foundLocale ? $language : $foundLang ?: $locale;
return $foundLocale ?: $foundLang ?: $locale;
}
/**