From 684503245c255cff509e75e8bff715516bb99e5c Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 22 Jan 2016 12:59:22 +0100 Subject: [PATCH] Call addCss & addJs instead of add(), as otherwise it will lose group and loading information --- system/src/Grav/Common/Assets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }