- fixed parser error on objects with special smarty vars

This commit is contained in:
Uwe.Tews
2009-11-03 15:23:18 +00:00
parent 67af69cbb1
commit bbbb5e098e
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
11/03/2009
- fixed parser error on objects with special smarty vars
11/02/2009
- added neq,lte,gte,mod as aliases to if conditions
- throw exception on illegal Smarty() constructor calls

View File

@@ -2294,7 +2294,7 @@ static public $yy_action = array(
function yy_r96(){$this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; }
#line 2300 "smarty_internal_templateparser.php"
#line 398 "smarty_internal_templateparser.y"
function yy_r97(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('internal_smarty_var',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else {
function yy_r97(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] == '\'smarty\'') { $this->_retvalue = $this->compiler->compileTag('special_smarty_variable',$this->yystack[$this->yyidx + -1]->minor['index']).$this->yystack[$this->yyidx + 0]->minor;} else {
$this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -1]->minor['var'] .')->value'.$this->yystack[$this->yyidx + -1]->minor['index'].$this->yystack[$this->yyidx + 0]->minor; $this->compiler->tag_nocache=$this->compiler->tag_nocache|$this->template->getVariable(trim($this->yystack[$this->yyidx + -1]->minor['var'],"'"))->nocache;} }
#line 2304 "smarty_internal_templateparser.php"
#line 401 "smarty_internal_templateparser.y"