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

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Aug 25, 2019
1 parent a09b588 commit 64185b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Srcset.php
Expand Up @@ -14,8 +14,8 @@ public static function srcset(\Kirby\Cms\File $file, $preset = 'default', $lazy
$isLazy = $lazy !== null && $lazy !== false;

$img = $file;
if ($fallbackType = option('option.bnomei.srcset.fallback.type')) {
$img = $file->parent()->file();
if ($fallbackType = option('bnomei.srcset.fallback.type')) {
$img = $file->parent()->file(str_replace($img->extension(), $fallbackType, $img->filename()));
}

return snippet($snippet, [
Expand Down

0 comments on commit 64185b1

Please sign in to comment.