mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 23:16:59 +02:00
Call addCss & addJs instead of add(), as otherwise it will lose group and loading information
This commit is contained in:
@@ -251,7 +251,7 @@ class Assets
|
||||
}
|
||||
return $this;
|
||||
} elseif (isset($this->collections[$asset])) {
|
||||
$this->add($this->collections[$asset], $priority, $pipeline, $group);
|
||||
$this->addCss($this->collections[$asset], $priority, $pipeline, $group);
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ class Assets
|
||||
}
|
||||
return $this;
|
||||
} elseif (isset($this->collections[$asset])) {
|
||||
$this->add($this->collections[$asset], $priority, $pipeline, $loading, $group);
|
||||
$this->addJs($this->collections[$asset], $priority, $pipeline, $loading, $group);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user