Fixing error introduced in previous commit due to bad merge

This commit is contained in:
José Lorenzo Rodríguez 2010-01-19 16:44:43 -04:30
parent cb4a1f07e5
commit 96fd0bf100

View file

@ -287,7 +287,7 @@ class BehaviorCollection extends Object {
}
ClassRegistry::addObject($class, $this->{$name});
if (!empty($plugin)) {
ClassRegistry::addObject($plugin.'.'.$class, $clas);
ClassRegistry::addObject($plugin.'.'.$class, $this->{$name});
}
}
} elseif (isset($this->{$name}->settings) && isset($this->{$name}->settings[$this->modelName])) {