diff --git a/cake/console/libs/tasks/controller.php b/cake/console/libs/tasks/controller.php index 8a9bcbd1d..514089e72 100644 --- a/cake/console/libs/tasks/controller.php +++ b/cake/console/libs/tasks/controller.php @@ -188,7 +188,7 @@ class ControllerTask extends Shell { $actions = $this->bakeActions($controllerName, null, strtolower($wannaUseSession) == 'y'); } if (strtolower($wannaBakeAdminCrud) == 'y') { - $admin = $this->getAdmin(); + $admin = $this->Project->getAdmin(); $actions .= $this->bakeActions($controllerName, $admin, strtolower($wannaUseSession) == 'y'); }