Mercurial > defr > templates
changeset 1:0f40a8a39c68
Correction d'une faute de frappe dans une variable.
candidate est quand meme plus comprehensible que canditate.
author | Franck Deroche <webmaster@defr.net> |
---|---|
date | Fri, 16 Mar 2007 14:09:38 +0100 |
parents | c86959030ae8 |
children | ad12469f4db4 |
files | class.template.php |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;