mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix unreachable code in Model mergeVars
Squashed commit of the following: commitc8326460a4
Author: Fitorec <chanerec@gmail.com> Date: Tue Dec 6 18:04:11 2011 -0600 add a space after the comma in the $merge array commit22ad6cdca5
Author: Fitorec <chanerec@gmail.com> Date: Tue Dec 6 03:31:54 2011 -0600 removing the condition and adding actsAs to the default list of merged keys. commitafa4dd0dee
Author: Fitorec <chanerec@gmail.com> Date: Mon Dec 5 12:10:32 2011 -0600 Solving the small defect in the array of behaviors(actsAs) Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
1358af783b
commit
e7c913acba
1 changed files with 1 additions and 4 deletions
|
@ -672,10 +672,7 @@ class Model extends Object {
|
|||
}
|
||||
|
||||
if (is_subclass_of($this, 'AppModel')) {
|
||||
$merge = array('findMethods');
|
||||
if ($this->actsAs !== null || $this->actsAs !== false) {
|
||||
$merge[] = 'actsAs';
|
||||
}
|
||||
$merge = array('actsAs', 'findMethods');
|
||||
$parentClass = get_parent_class($this);
|
||||
if ($parentClass !== 'AppModel') {
|
||||
$this->_mergeVars($merge, $parentClass);
|
||||
|
|
Loading…
Reference in a new issue