Skip to content

Commit

Permalink
Fixes yiisoft#704.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Aug 3, 2013
1 parent 6b41d41 commit d836654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/yii/console/controllers/HelpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function getModuleCommands($module)
$files = scandir($module->getControllerPath());
foreach ($files as $file) {
if (strcmp(substr($file, -14), 'Controller.php') === 0) {
$commands[] = $prefix . lcfirst(substr(basename($file), 0, -14));
$commands[] = $prefix . Inflector::camel2id(substr(basename($file), 0, -14));
}
}

Expand Down

0 comments on commit d836654

Please sign in to comment.