Fix ternary operator ambiguity deprecation in Utils\L10n
This commit is contained in:
parent
8bd1cb11ae
commit
95ffadb19f
|
@ -165,12 +165,12 @@ class L10n
|
||||||
$foundLang = $language;
|
$foundLang = $language;
|
||||||
}
|
}
|
||||||
if (strtolower($key) == strtolower(str_replace('-', '_', $locale))) {
|
if (strtolower($key) == strtolower(str_replace('-', '_', $locale))) {
|
||||||
$foundLocale = true;
|
$foundLocale = $language;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $foundLocale ? $language : $foundLang ?: $locale;
|
return $foundLocale ?: $foundLang ?: $locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue