From 83e024ef528df41c06c85ded45f40676ad5bf575 Mon Sep 17 00:00:00 2001 From: Loveorigami Date: Sat, 26 Mar 2016 22:21:34 +0300 Subject: [PATCH] fix exception --- src/widgets/Wrapper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widgets/Wrapper.php b/src/widgets/Wrapper.php index 7cd70eb..d04f897 100644 --- a/src/widgets/Wrapper.php +++ b/src/widgets/Wrapper.php @@ -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']); } @@ -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;