Update Kirby to 3.7.4

This commit is contained in:
Lukas Bestle
2022-08-23 21:36:13 +02:00
parent 435b9f4541
commit d89a0a647c
674 changed files with 212 additions and 61 deletions

9
kirby/src/Toolkit/Locale.php Executable file → Normal file
View File

@@ -135,9 +135,18 @@ class Locale
{
$locale = static::normalize($locale);
// locale for core string functions
foreach ($locale as $key => $value) {
setlocale($key, $value);
}
// locale for the intl extension
if (
function_exists('locale_set_default') === true &&
$timeLocale = $locale[LC_TIME] ?? $locale[LC_ALL] ?? null
) {
locale_set_default($timeLocale);
}
}
/**