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

Commit c671c55

Browse files
committed
Fix mergeNodes: use cloneNode() to avoid reference mess up.
1 parent 15f20d9 commit c671c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/core/classes/class.AJXP_PluginsService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ protected function mergeChildByTagName($new, &$old)
793793
if ($newChild->nodeName == "post_processing" || $newChild->nodeName == "pre_processing") {
794794
$old->appendChild($newChild->cloneNode(true));
795795
} else {
796-
$this->mergeChildByTagName($newChild, $found);
796+
$this->mergeChildByTagName($newChild->cloneNode(true), $found);
797797
}
798798
} else {
799799
// CloneNode or it's messing with the current foreach loop.

0 commit comments

Comments
 (0)