Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix mergeNodes: use cloneNode() to avoid reference mess up.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 23, 2015
1 parent 15f20d9 commit c671c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/core/classes/class.AJXP_PluginsService.php
Expand Up @@ -793,7 +793,7 @@ protected function mergeChildByTagName($new, &$old)
if ($newChild->nodeName == "post_processing" || $newChild->nodeName == "pre_processing") {
$old->appendChild($newChild->cloneNode(true));
} else {
$this->mergeChildByTagName($newChild, $found);
$this->mergeChildByTagName($newChild->cloneNode(true), $found);
}
} else {
// CloneNode or it's messing with the current foreach loop.
Expand Down

0 comments on commit c671c55

Please sign in to comment.