[Composer] Change gofabian/negotiation-middleware dependency requirement to support PHP 8.2 #96

Merged
tobias merged 4 commits from MrPetovan/friendica-directory:bug/php-8 into stable 2023-08-09 07:01:21 +02:00
Showing only changes of commit 95ffadb19f - Show all commits

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;
}
/**