mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 13:25:23 +08:00
pull origin
This commit is contained in:
@@ -156,7 +156,7 @@ class HelpController extends Controller
|
||||
if (is_dir($controllerPath)) {
|
||||
$files = scandir($controllerPath);
|
||||
foreach ($files as $file) {
|
||||
if (strcmp(substr($file, -14), 'Controller.php') === 0) {
|
||||
if (!empty($file) && substr_compare($file, 'Controller.php', -14) === 0) {
|
||||
$controllerClass = $module->controllerNamespace . '\\' . substr(basename($file), 0, -4);
|
||||
if ($this->validateControllerClass($controllerClass)) {
|
||||
$commands[] = $prefix . Inflector::camel2id(substr(basename($file), 0, -14));
|
||||
|
||||
Reference in New Issue
Block a user