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:
dho 2007-06-05 17:06:00 +00:00
parent 40c943112f
commit b3b1b0ad74

View file

@ -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);