Skip to content
Permalink
Browse files

Changing new Model() for ClassRegistry::init(). Fixes issues when bak…

…ing admin and non-admin methods for a controller that uses bound translations + TranslateBehavior. Fixes #245
  • Loading branch information...
markstory committed Nov 12, 2009
1 parent a7a6dc8 commit 38f578199de3ff6b6debbe8c17d73762354fd6d0
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/console/libs/tasks/controller.php
@@ -252,7 +252,7 @@ function bakeActions($controllerName, $admin = null, $wannaUseSession = true) {
exit;
}
$actions = null;
$modelObj =& new $currentModelName();
$modelObj =& ClassRegistry::init($currentModelName);
$controllerPath = $this->_controllerPath($controllerName);
$pluralName = $this->_pluralName($currentModelName);
$singularName = Inflector::variable($currentModelName);

0 comments on commit 38f5781

Please sign in to comment.
You can’t perform that action at this time.