Browse Source

Fixes #1195.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
da93d9b4ba
  1. 2
      extensions/gii/generators/module/Generator.php

2
extensions/gii/generators/module/Generator.php

@ -139,7 +139,7 @@ EOD;
*/ */
public function validateModuleClass() 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.'); $this->addError('moduleClass', 'Module class must be properly namespaced.');
} }
if (substr($this->moduleClass, -1, 1) == '\\') { if (substr($this->moduleClass, -1, 1) == '\\') {

Loading…
Cancel
Save