mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding fix for #2880, using the acl cli help command would return list of all commands instead of individual commands
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5415 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
38bf760524
commit
79147c297f
1 changed files with 4 additions and 4 deletions
|
@ -421,14 +421,14 @@ class AclShell extends Shell {
|
|||
);
|
||||
|
||||
$this->out($head);
|
||||
if (!isset($this->args[1])) {
|
||||
if (!isset($this->args[0])) {
|
||||
foreach ($commands as $cmd) {
|
||||
$this->out("{$cmd}\n\n");
|
||||
}
|
||||
} elseif (isset($commands[low($this->args[1])])) {
|
||||
$this->out($commands[low($this->args[1])] . "\n\n");
|
||||
} elseif (isset($commands[low($this->args[0])])) {
|
||||
$this->out($commands[low($this->args[0])] . "\n\n");
|
||||
} else {
|
||||
$this->out(sprintf(__("Command '%s' not found", true), $this->args[1]));
|
||||
$this->out(sprintf(__("Command '%s' not found", true), $this->args[0]));
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue