Skip to content

Commit 77f8463

Browse files
committed
fixes filemethods
Signed-off-by: Bruno Meilick <[email protected]>
1 parent 97d83b7 commit 77f8463

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-fingerprint",
33
"type": "plugin",
4-
"version": "2.0.3",
4+
"version": "2.0.4",
55
"description": "File Method and css/js helper to add cachbusting hash and optional Subresource Integrity to file",
66
"license": "MIT",
77
"autoload": {

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
}
4545
],
4646
'fileMethods' => [
47-
'fingerprint' => function ($file) {
48-
return \Bnomei\Fingerprint::process($file)['hash'];
47+
'fingerprint' => function () {
48+
return \Bnomei\Fingerprint::process($this)['hash'];
4949
},
50-
'integrity' => function ($file) {
51-
return \Bnomei\Fingerprint::process($file)['integrity'];
50+
'integrity' => function () {
51+
return \Bnomei\Fingerprint::process($this)['integrity'];
5252
}
5353
]
5454
]);

0 commit comments

Comments
 (0)