mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Fixing problem when baking only admin functions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5247 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
40c943112f
commit
b3b1b0ad74
1 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,11 @@ class ControllerTask extends Shell {
|
|||
if(isset($this->args[2]) && $this->args[2] == 'admin') {
|
||||
if($admin = $this->getAdmin()) {
|
||||
$this->out('Adding ' . CAKE_ADMIN .' methods');
|
||||
$actions .= $this->__bakeActions($controller, $admin);
|
||||
if ($actions == 'scaffold') {
|
||||
$actions = $this->__bakeActions($controller, $admin);
|
||||
} else {
|
||||
$actions .= $this->__bakeActions($controller, $admin);
|
||||
}
|
||||
}
|
||||
}
|
||||
$baked = $this->__bake($controller, $actions);
|
||||
|
|
Loading…
Add table
Reference in a new issue