Skip to content

Commit

Permalink
#23: Fixed module configs merging
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuravljov committed Oct 17, 2013
1 parent 128624a commit 7a7e016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Yii2Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ public function init()
}
$this->panels = $panels;

Yii::app()->setModules(array_merge(Yii::app()->getModules(), array(
Yii::app()->setModules(array(
$this->moduleId => array(
'class' => 'Yii2DebugModule',
'component' => $this,
),
)));
));

if ($this->internalUrls && (Yii::app()->getUrlManager()->urlFormat == 'path')) {
$rules = array();
Expand Down

0 comments on commit 7a7e016

Please sign in to comment.