diff --git a/system/src/Grav/Common/Assets.php b/system/src/Grav/Common/Assets.php index ac096080e..1703470a2 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->addCss($this->collections[$asset], $priority, $pipeline, $group); + $this->add($this->collections[$asset], $priority, $pipeline, $group); return $this; } @@ -273,7 +273,7 @@ class Assets ]; // check for dynamic array and merge with defaults - if (func_num_args() == 2) { + if (func_num_args() == 3) { $dynamic_arg = func_get_arg(1); if (is_array($dynamic_arg)) { $data = array_merge($data, $dynamic_arg); @@ -309,7 +309,7 @@ class Assets } return $this; } elseif (isset($this->collections[$asset])) { - $this->addJs($this->collections[$asset], $priority, $pipeline, $loading, $group); + $this->add($this->collections[$asset], $priority, $pipeline, $loading, $group); return $this; } @@ -332,7 +332,7 @@ class Assets ]; // check for dynamic array and merge with defaults - if (func_num_args() == 2) { + if (func_num_args() == 3) { $dynamic_arg = func_get_arg(1); if (is_array($dynamic_arg)) { $data = array_merge($data, $dynamic_arg);