Permalink
Browse files

fixes #15

  • Loading branch information...
KJLJon committed May 6, 2013
1 parent 81075a3 commit 4d51234d92ea5f9ba6f70a5585ca3cfbd9fa58b7
Showing with 3 additions and 1 deletion.
  1. +3 −1 EMigrateCommand.php
View
@@ -84,7 +84,7 @@ public function getModulePaths()
$this->_modulePaths = array();
foreach(Yii::app()->modules as $module => $config) {
if (is_array($config)) {
- $alias = 'application.modules.' . $module . '.' . ltrim($this->migrationSubPath, '.');
+ $alias = $module;
if (isset($config['class'])) {
Yii::setPathOfAlias(
$alias,
@@ -97,6 +97,8 @@ public function getModulePaths()
$config['basePath'] . '/' .
str_replace('.', '/', ltrim($this->migrationSubPath, '.'))
);
+ } else {
+ $alias = 'application.modules.' . $module . '.' . ltrim($this->migrationSubPath, '.');
}
$this->_modulePaths[$module] = $alias;
$path = Yii::getPathOfAlias($alias);

0 comments on commit 4d51234

Please sign in to comment.