From 0348e71109e6f4f0a94584d50ff8ce0d5a01492b Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Tue, 27 Sep 2011 17:52:21 +0000 Subject: [PATCH] - bugfix variable property did not work on objects variable in template --- change_log.txt | 1 + libs/sysplugins/smarty_internal_templateparser.php | 12 +----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/change_log.txt b/change_log.txt index e31d0ed6..14555b9d 100644 --- a/change_log.txt +++ b/change_log.txt @@ -3,6 +3,7 @@ - bugfix possible warning "attempt to modify property of non-object" in {section} (issue #34) - added chaining to Smarty_Internal_Data so $smarty->assign('a',1)->assign('b',2); is possible now - bugfix remove race condition when a custom resource did change timestamp during compilation +- bugfix variable property did not work on objects variable in template 26.09.2011 - bugfix repeated calls to same subtemplate did not make use of cached template object diff --git a/libs/sysplugins/smarty_internal_templateparser.php b/libs/sysplugins/smarty_internal_templateparser.php index 1f19d2d6..663381a8 100644 --- a/libs/sysplugins/smarty_internal_templateparser.php +++ b/libs/sysplugins/smarty_internal_templateparser.php @@ -1,14 +1,4 @@ security) { $this->compiler->trigger_template_error (self::Err2); } - $this->_retvalue = '->{'.$this->compileVariable("'".$this->yystack[$this->yyidx + -1]->minor."'").$this->yystack[$this->yyidx + 0]->minor.'}'; + $this->_retvalue = '->{'.$this->compileVariable($this->yystack[$this->yyidx + -1]->minor).$this->yystack[$this->yyidx + 0]->minor.'}'; } #line 2806 "smarty_internal_templateparser.php" #line 931 "smarty_internal_templateparser.y"