# HG changeset patch # User Franck Deroche # Date 1174050578 -3600 # Node ID 0f40a8a39c6826676f1a3736f7ced91813824397 # Parent c86959030ae82137096f3f0010a23216f46aa926 Correction d'une faute de frappe dans une variable. candidate est quand meme plus comprehensible que canditate. diff -r c86959030ae8 -r 0f40a8a39c68 class.template.php --- a/class.template.php Sat Mar 10 21:48:42 2007 +0100 +++ b/class.template.php Fri Mar 16 14:09:38 2007 +0100 @@ -52,12 +52,12 @@ } function getClonedNode($node, $childNodeName) { - $canditates = $node->getElementsByTagName($childNodeName); - foreach($canditates as $canditate) { - if($canditate->nodeName == $childNodeName && $canditate->getAttributeNS(Template::NS, 'toClone') == 'true') { + $candidates = $node->getElementsByTagName($childNodeName); + foreach($candidates as $candidate) { + if($candidate->nodeName == $childNodeName && $candidate->getAttributeNS(Template::NS, 'toClone') == 'true') { $tmp = array(); - $tmp['orig'] = $canditate; - $cnode = $canditate->cloneNode(true); + $tmp['orig'] = $candidate; + $cnode = $candidate->cloneNode(true); $cnode->removeAttribute('toClone'); $tmp['clone'] = $cnode; return (object)$tmp;