Skip to content

Commit

Permalink
fix exception
Browse files Browse the repository at this point in the history
  • Loading branch information
loveorigami committed Mar 26, 2016
1 parent 82bf736 commit 83e024e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/widgets/Wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ public function init()
{
parent::init();

if (!isset($this->layerClass)) {
throw new InvalidParamException(Yii::t('noty', 'layerClass not configurated'));
}

$this->url = Yii::$app->getUrlManager()->createUrl(['noty/default/index']);
}

Expand All @@ -85,6 +81,10 @@ public function init()
*/
public function run()
{
if (!$this->layerClass) {
throw new InvalidParamException(Yii::t('noty', 'layerClass not configurated'));
}

$this->isAjax = false;

$config = $this->layerOptions;
Expand Down

0 comments on commit 83e024e

Please sign in to comment.