Skip to content
Permalink
Browse files

Second parameter of ClassRegistry::init() is a boolean, not a string

  • Loading branch information...
sime committed Apr 22, 2013
1 parent 4b1283f commit 77feac9ef6c9891ce4c55496d293c5b7d21aad08
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Behavior/TranslateBehavior.php
@@ -539,7 +539,7 @@ public function translateModel(Model $Model) {
$className = $Model->translateModel;
}
$this->runtime[$Model->alias]['model'] = ClassRegistry::init($className, 'Model');
$this->runtime[$Model->alias]['model'] = ClassRegistry::init($className);
}
if (!empty($Model->translateTable) && $Model->translateTable !== $this->runtime[$Model->alias]['model']->useTable) {
$this->runtime[$Model->alias]['model']->setSource($Model->translateTable);

0 comments on commit 77feac9

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