Fix typo, credit to @alxy for identifying
This commit is contained in:
parent
812c0552e8
commit
acd0616aaa
|
|
@ -1212,14 +1212,14 @@ class Lists extends WidgetBase
|
||||||
|
|
||||||
// Handle absolute URLs
|
// Handle absolute URLs
|
||||||
} elseif (str_contains($value, '://')) {
|
} elseif (str_contains($value, '://')) {
|
||||||
$value = $value;
|
$image = $value;
|
||||||
|
|
||||||
// Assume all other values to be from the media library
|
// Assume all other values to be from the media library
|
||||||
} else {
|
} else {
|
||||||
$value = MediaLibrary::url($value);
|
$image = MediaLibrary::url($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_null($value)) {
|
if (!is_null($image)) {
|
||||||
$imageUrl = ImageResizer::filterGetUrl($image, $width, $height, $options);
|
$imageUrl = ImageResizer::filterGetUrl($image, $width, $height, $options);
|
||||||
return "<img src='$imageUrl' width='$width' height='$height' />";
|
return "<img src='$imageUrl' width='$width' height='$height' />";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue