Browse Source

Fix create object Asset Bundle with custom class in Bundle config

tags/2.0.0-beta
Smotrov Dmitriy 12 years ago
parent
commit
4efc097e25
  1. 2
      framework/yii/web/AssetManager.php

2
framework/yii/web/AssetManager.php

@ -126,8 +126,8 @@ class AssetManager extends Component
$config = $this->bundles[$name];
if (!isset($config['class'])) {
$config['class'] = 'yii\\web\\AssetBundle';
$this->bundles[$name] = Yii::createObject($config);
}
$this->bundles[$name] = Yii::createObject($config);
}
return $this->bundles[$name];

Loading…
Cancel
Save