Skip to content
Browse files

fix bug #17390 - id nameuses replacement got broken on previous commi…

…t (Christophe Husson)

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Template_Flexy/trunk@299325 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent ed0e718 commit f9dbf2cf862ae0bae6bcd985c23c77131e9c9d98 @roojs roojs committed May 13, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 HTML/Template/Flexy/Compiler/Flexy/Tag.php
View
4 HTML/Template/Flexy/Compiler/Flexy/Tag.php
@@ -872,7 +872,7 @@ function getElementPhp($id,$mergeWithName=false,$varsOnly = false) {
if ($this->element->getAttribute('ID')) {
$idvar = 'sprintf(\''.$this->element->getAttribute('ID') .'\','.$this->element->toVar($var) .')';
- $idreplace = '$this->elements['.$printfvar.']->attributes[\'id\'] = '.$idvar.';';
+ $idreplace = '$_element->attributes[\'id\'] = '.$idvar.';';
}
return $ret . '
$_element = $this->mergeElement(
@@ -1296,4 +1296,4 @@ function _raiseErrorWithPositionAndTag($message, $type = null, $fatal = HTML_TEM
}
-}
+}

0 comments on commit f9dbf2c

Please sign in to comment.
Something went wrong with that request. Please try again.