From 12c5734de5d367be0758eac5965caf11e32ed059 Mon Sep 17 00:00:00 2001 From: Fuze Date: Mon, 5 Dec 2016 10:50:22 +0300 Subject: [PATCH] fix error --- system/core/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/core/template.php b/system/core/template.php index c96ed494b..06144fd8e 100755 --- a/system/core/template.php +++ b/system/core/template.php @@ -716,7 +716,7 @@ public function addControllerJS($path, $cname = '', $comment = '', $allow_merge $js_file = $this->getTplFilePath("controllers/{$cname}/js/{$path}.js", false); if($js_file){ - return $this->addJS($path, $comment, $allow_merge); + return $this->addJS($js_file, $comment, $allow_merge); } return false; @@ -729,7 +729,7 @@ public function addControllerCSS($path, $cname = '', $allow_merge = true){ $css_file = $this->getTplFilePath("controllers/{$cname}/css/{$path}.css", false); if($css_file){ - return $this->addCSS($path, $allow_merge); + return $this->addCSS($css_file, $allow_merge); } return false;