Permalink
Browse files

Allowing admin baking to work with plugin controllers

  • Loading branch information...
1 parent adc8028 commit 9d0d31409a1cd531defc5b590265abbf4959d7cf @AD7six AD7six committed Jul 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/console/libs/tasks/controller.php
View
2 cake/console/libs/tasks/controller.php
@@ -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();
}

0 comments on commit 9d0d314

Please sign in to comment.