Fixing getAdmin() method location to reflect changes in API.

This commit is contained in:
mark_story 2009-07-16 12:50:37 -04:00
parent a7fb5f96e9
commit cbb568b3c7

View file

@ -188,7 +188,7 @@ class ControllerTask extends Shell {
$actions = $this->bakeActions($controllerName, null, strtolower($wannaUseSession) == 'y'); $actions = $this->bakeActions($controllerName, null, strtolower($wannaUseSession) == 'y');
} }
if (strtolower($wannaBakeAdminCrud) == 'y') { if (strtolower($wannaBakeAdminCrud) == 'y') {
$admin = $this->getAdmin(); $admin = $this->Project->getAdmin();
$actions .= $this->bakeActions($controllerName, $admin, strtolower($wannaUseSession) == 'y'); $actions .= $this->bakeActions($controllerName, $admin, strtolower($wannaUseSession) == 'y');
} }