From da93d9b4baf64914749e01c05d5c71404c2d59b8 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 13 Nov 2013 08:25:07 -0500 Subject: [PATCH] Fixes #1195. --- extensions/gii/generators/module/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/gii/generators/module/Generator.php b/extensions/gii/generators/module/Generator.php index fcb385d..76a3e5d 100644 --- a/extensions/gii/generators/module/Generator.php +++ b/extensions/gii/generators/module/Generator.php @@ -139,7 +139,7 @@ EOD; */ public function validateModuleClass() { - if (strpos($this->moduleClass, '\\') === false || Yii::getAlias('@' . str_replace('\\', '/', $this->moduleClass)) === false) { + if (strpos($this->moduleClass, '\\') === false || Yii::getAlias('@' . str_replace('\\', '/', $this->moduleClass), false) === false) { $this->addError('moduleClass', 'Module class must be properly namespaced.'); } if (substr($this->moduleClass, -1, 1) == '\\') {