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

Commit

Permalink
🐛 does not call global helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Feb 26, 2020
1 parent 9a10b5d commit be91c1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/Bnomei/Srcset.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function html(): string
public static function defaultOptions(): array
{
$nonce = option('bnomei.srcset.nonce');
if (is_callable($nonce)) {
if (!is_string($nonce) && is_callable($nonce)) {
$nonce = $nonce();
}

Expand Down
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.0",
"version": "3.3.1",
"license": "MIT",
"description": "Kirby 3 Plugin for creating lazyloading image srcset",
"authors": [
Expand Down

0 comments on commit be91c1d

Please sign in to comment.