Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
🐛 img not loaded from kirbytag
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Mar 17, 2020
1 parent 33cd632 commit f82bcf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-srcset",
"type": "kirby-plugin",
"version": "3.3.3",
"version": "3.3.4",
"license": "MIT",
"description": "Kirby 3 Plugin for creating lazyloading image srcset",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
\Bnomei\Srcset::kirbytagAttrs()
),
'html' => function ($tag) {
if ($tag === null || $tag->parent()->file($tag->value) === null) {
if ($tag === null || \image($tag->value) === null) {
return \Kirby\Cms\Html::img('', ['alt' => 'lazysrcset can not create srcset from null']);
}
$srcsetTag = new \Bnomei\Srcset($tag);
Expand Down

0 comments on commit f82bcf8

Please sign in to comment.