mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Second parameter of ClassRegistry::init() is a boolean, not a string
This commit is contained in:
parent
4b1283f002
commit
77feac9ef6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue