Browse Source

Merge pull request #602 from DsXack/master

Fix create object Asset Bundle with custom class in Bundle config
tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
e2bdfbb7be
  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