From 77feac9ef6c9891ce4c55496d293c5b7d21aad08 Mon Sep 17 00:00:00 2001 From: Simon Males Date: Mon, 22 Apr 2013 11:46:23 +0800 Subject: [PATCH] Second parameter of ClassRegistry::init() is a boolean, not a string --- lib/Cake/Model/Behavior/TranslateBehavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Behavior/TranslateBehavior.php b/lib/Cake/Model/Behavior/TranslateBehavior.php index afcc8d8e6..a253b7007 100644 --- a/lib/Cake/Model/Behavior/TranslateBehavior.php +++ b/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);