Upgrade to 4.1.2
This commit is contained in:
@@ -109,7 +109,7 @@ if (Helpers::hasOverride('deprecated') === false) { // @codeCoverageIgnore
|
||||
}
|
||||
}
|
||||
|
||||
if (Helpers::hasOverride('dump') === false) { // @codeCoverageIgnore
|
||||
if (Helpers::hasOverride('dump') === false && function_exists('dump') === false) { // @codeCoverageIgnore
|
||||
/**
|
||||
* Simple object and variable dumper
|
||||
* to help with debugging.
|
||||
|
@@ -148,7 +148,7 @@ return function (App $app) {
|
||||
$files = new Files([]);
|
||||
|
||||
foreach ($field->toData($separator) as $id) {
|
||||
if ($file = $parent->kirby()->file($id, $parent)) {
|
||||
if (is_string($id) === true && $file = $parent->kirby()->file($id, $parent)) {
|
||||
$files->add($file);
|
||||
}
|
||||
}
|
||||
@@ -481,10 +481,9 @@ return function (App $app) {
|
||||
|
||||
foreach ($elements as $element) {
|
||||
foreach ($attributes as $attribute) {
|
||||
if ($element->hasAttribute($attribute) && $url = $element->getAttribute($attribute)) {
|
||||
if ($element->hasAttribute($attribute) && $uuid = $element->getAttribute($attribute)) {
|
||||
try {
|
||||
if ($uuid = Uuid::for($url)) {
|
||||
$url = $uuid->model()?->url();
|
||||
if ($url = Uuid::for($uuid)?->model()?->url()) {
|
||||
$element->setAttribute($attribute, $url);
|
||||
}
|
||||
} catch (InvalidArgumentException) {
|
||||
|
Reference in New Issue
Block a user