Commit 4b1c92d 1 parent 391d2e4 commit 4b1c92d Copy full SHA for 4b1c92d
File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,19 @@ public function modified(): ?int
61
61
return null ;
62
62
}
63
63
64
- if ($ this ->isKirbyFile && function_exists ('autoid ' ) && $ this ->file ->autoid ()->isNotEmpty ()) {
64
+ $ modified = null ;
65
+ if ($ this ->isKirbyFile && function_exists ('modified ' ) && $ this ->file ->autoid ()->isNotEmpty ()) {
65
66
// @codeCoverageIgnoreStart
66
- $ autoid = autoid ()->filterBy ('autoid ' , $ this ->file ->autoid ())->first ();
67
- return $ autoid && is_array ($ autoid ) ? A::get ($ autoid , 'modified ' ) : F::modified ($ root );
67
+ $ modified = modified ($ this ->file ->autoid ()->value ());
68
+ if (!$ modified ) {
69
+ $ modified = $ this ->file ->modified ();
70
+ }
68
71
// @codeCoverageIgnoreEnd
72
+ } else {
73
+ $ modified = F::modified ($ root );
69
74
}
70
75
71
- return F:: modified ( $ root ) ;
76
+ return $ modified ;
72
77
}
73
78
74
79
/**
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bnomei/kirby3-fingerprint" ,
3
3
"type" : " kirby-plugin" ,
4
- "version" : " 3.0.5 " ,
4
+ "version" : " 3.0.6 " ,
5
5
"description" : " File Method and css/js helper to add cachebusting hash and optional Subresource Integrity to file" ,
6
6
"license" : " MIT" ,
7
7
"authors" : [
You can’t perform that action at this time.
0 commit comments