mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '4.4' into 4
This commit is contained in:
commit
559f660e0e
@ -418,19 +418,19 @@ class Requirements_Backend
|
|||||||
|
|
||||||
// make sure that async/defer is set if it is set once even if file is included multiple times
|
// make sure that async/defer is set if it is set once even if file is included multiple times
|
||||||
$async = (
|
$async = (
|
||||||
isset($options['async']) && isset($options['async']) == true
|
isset($options['async']) && $options['async']
|
||||||
|| (
|
|| (
|
||||||
isset($this->javascript[$file])
|
isset($this->javascript[$file])
|
||||||
&& isset($this->javascript[$file]['async'])
|
&& isset($this->javascript[$file]['async'])
|
||||||
&& $this->javascript[$file]['async'] == true
|
&& $this->javascript[$file]['async']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$defer = (
|
$defer = (
|
||||||
isset($options['defer']) && isset($options['defer']) == true
|
isset($options['defer']) && $options['defer']
|
||||||
|| (
|
|| (
|
||||||
isset($this->javascript[$file])
|
isset($this->javascript[$file])
|
||||||
&& isset($this->javascript[$file]['defer'])
|
&& isset($this->javascript[$file]['defer'])
|
||||||
&& $this->javascript[$file]['defer'] == true
|
&& $this->javascript[$file]['defer']
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$integrity = $options['integrity'] ?? null;
|
$integrity = $options['integrity'] ?? null;
|
||||||
|
Loading…
Reference in New Issue
Block a user