diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index d649979d9..2da3eafe1 100644 --- a/system/src/Grav/Common/Assets.php +++ b/system/src/Grav/Common/Assets.php @@ -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; }