From 1edeb7aa5e37f9a96e9729a846d9ccbbf16fcbc6 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 30 Dec 2013 21:35:15 -0500 Subject: [PATCH] Fixed test break. --- framework/yii/web/AssetBundle.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/yii/web/AssetBundle.php b/framework/yii/web/AssetBundle.php index d588993..da34848 100644 --- a/framework/yii/web/AssetBundle.php +++ b/framework/yii/web/AssetBundle.php @@ -146,16 +146,16 @@ class AssetBundle extends Object { foreach ($this->js as $js) { if (strpos($js, '/') !== 0 && strpos($js, '://') === false) { - $view->registerJsFile($this->baseUrl . '/' . $js, $this->jsOptions); + $view->registerJsFile($this->baseUrl . '/' . $js, [], $this->jsOptions); } else { - $view->registerJsFile($js, $this->jsOptions); + $view->registerJsFile($js, [], $this->jsOptions); } } foreach ($this->css as $css) { if (strpos($css, '/') !== 0 && strpos($css, '://') === false) { - $view->registerCssFile($this->baseUrl . '/' . $css, $this->cssOptions); + $view->registerCssFile($this->baseUrl . '/' . $css, [], $this->cssOptions); } else { - $view->registerCssFile($css, $this->cssOptions); + $view->registerCssFile($css, [], $this->cssOptions); } } }