]> git.sesse.net Git - xml-template/commitdiff
Fix cleaning, using the first undocumented method (yay PHP). simple.xml
authorsgunderson@bigfoot.com <>
Mon, 21 Apr 2008 19:47:31 +0000 (21:47 +0200)
committersgunderson@bigfoot.com <>
Mon, 21 Apr 2008 19:47:31 +0000 (21:47 +0200)
passes.

php5/xml-template.php

index e6f92c21888135ef9038a9d79965a85f7d67a5aa..7d0ab1985102e734fa256deaa0111492b4bd5960 100644 (file)
@@ -46,7 +46,7 @@ function XML_Template_process($node, $obj, $clean = 1)
                                                if ($attr->namespaceURI == 'http://template.sesse.net/' && $attr->name == 'id') {
                                                        $id = $attr->value;
                                                        if ($clean) {
-                                                               # $attr->unlinkNode();
+                                                               $child->removeAttributeNode($attr);
                                                        }
                                                }
                                        }