Skip to content

Commit

Permalink
Allowing admin baking to work with plugin controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Jul 28, 2009
1 parent adc8028 commit 9d0d314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/console/libs/tasks/controller.php
Expand Up @@ -280,7 +280,7 @@ function bakeActions($controllerName, $admin = null, $wannaUseSession = true) {
if ($this->plugin) {
$modelImport = $this->plugin . '.' . $modelImport;
}
if (!App::import('Model', $currentModelName)) {
if (!App::import('Model', $modelImport)) {
$this->err(__('You must have a model for this class to build basic methods. Please try again.', true));
$this->_stop();
}
Expand Down

0 comments on commit 9d0d314

Please sign in to comment.