From e14d5851a76e73675800787dcbcc7582b4dbd5ed Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 13 Jun 2011 12:53:41 +0200 Subject: fix template's {{ for }} variable lookup --- include/template_processor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/template_processor.php') diff --git a/include/template_processor.php b/include/template_processor.php index d8dfbaedb..3dc249c40 100644 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -58,7 +58,8 @@ list($keyname, $varname) = explode("=>",$m[1]); if (is_null($varname)) { $varname=$keyname; $keyname=""; } if ($m[0]=="" || $varname=="" || is_null($varname)) die("template error: 'for ".$m[0]." as ".$varname."'") ; - $vals = $this->r[$m[0]]; + //$vals = $this->r[$m[0]]; + $vals = $this->_get_var($m[0]); $ret=""; if (!is_array($vals)) return $ret; foreach ($vals as $k=>$v){ -- cgit v1.2.3