Upgrade to 3.6.1.1

This commit is contained in:
Bastian Allgeier
2021-12-09 17:09:57 +01:00
parent 70b8439c49
commit f62d1a39ca
17 changed files with 127 additions and 77 deletions

View File

@@ -159,7 +159,7 @@ class KirbyTag
// extract all attributes
$regex = sprintf('/(%s):/i', implode('|', $attr));
$search = preg_split($regex, $tag, false, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$search = preg_split($regex, $tag, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
// $search is now an array with alternating keys and values
// convert it to arrays of keys and values

View File

@@ -417,7 +417,7 @@ class Str
$value = str_replace(',', '.', $value);
$decimal = strlen(substr(strrchr($value, '.'), 1));
return number_format((float)$value, $decimal, '.', false);
return number_format((float)$value, $decimal, '.', '');
}
/**