Browse Source

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

Simon Males 13 years ago
parent
commit
77feac9ef6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Model/Behavior/TranslateBehavior.php

+ 1 - 1
lib/Cake/Model/Behavior/TranslateBehavior.php

@@ -539,7 +539,7 @@ class TranslateBehavior extends ModelBehavior {
 				$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);