Skip to content

Commit

Permalink
fix srcset disable option was not applied
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 21, 2019
1 parent 5dafe25 commit 009d477
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/Betterrest.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ public function applySmartypants(?string $value): string
public function applySrcSet($value): array
{
$srcset = \Kirby\Toolkit\A::get($this->options, 'srcset');
if (! $srcset) {
return $value;
}
$file = $this->kirby->file($value['id']);
$value['srcset'] = $file->srcset($srcset);

Expand Down

0 comments on commit 009d477

Please sign in to comment.