From 6fe63a217fc650be5b6d3b65d143d0449f90bd15 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Fri, 25 Apr 2014 00:57:41 +0200 Subject: [PATCH] view did not use the correct assetmanager --- framework/web/View.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/web/View.php b/framework/web/View.php index 902493db25..a1c1e7909f 100644 --- a/framework/web/View.php +++ b/framework/web/View.php @@ -373,7 +373,7 @@ class View extends \yii\base\View if (empty($depends)) { $this->cssFiles[$key] = Html::cssFile($url, $options); } else { - $am = Yii::$app->getAssetManager(); + $am = $this->getAssetManager(); $am->bundles[$key] = new AssetBundle([ 'css' => [Url::to($url)], 'cssOptions' => $options, @@ -435,7 +435,7 @@ class View extends \yii\base\View unset($options['position']); $this->jsFiles[$position][$key] = Html::jsFile($url, $options); } else { - $am = Yii::$app->getAssetManager(); + $am = $this->getAssetManager(); $am->bundles[$key] = new AssetBundle([ 'js' => [Url::to($url)], 'jsOptions' => $options,