mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-23 04:00:23 +08:00
Fixed Call to a member function registerAssetFiles() on a non-object
in case of wrong sourcePath
for an asset bundle
This commit is contained in:
@ -5,6 +5,7 @@ Yii Framework 2 Change Log
|
||||
----------------------------
|
||||
|
||||
- Bug #1446: Logging while logs are processed causes infinite loop (qiangxue)
|
||||
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
||||
- Enh #1293: Replaced Console::showProgress() with a better approach. See Console::startProgress() for details (cebe)
|
||||
- Enh #1406: DB Schema support for Oracle Database (p0larbeer, qiangxue)
|
||||
- Enh #1437: Added ListView::viewParams (qiangxue)
|
||||
|
@ -184,10 +184,12 @@ class View extends \yii\base\View
|
||||
return;
|
||||
}
|
||||
$bundle = $this->assetBundles[$name];
|
||||
foreach ($bundle->depends as $dep) {
|
||||
$this->registerAssetFiles($dep);
|
||||
if ($bundle) {
|
||||
foreach ($bundle->depends as $dep) {
|
||||
$this->registerAssetFiles($dep);
|
||||
}
|
||||
$bundle->registerAssetFiles($this);
|
||||
}
|
||||
$bundle->registerAssetFiles($this);
|
||||
unset($this->assetBundles[$name]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user