aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-06-13 12:53:41 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-06-13 12:53:41 +0200
commite14d5851a76e73675800787dcbcc7582b4dbd5ed (patch)
treed94eb0610a5522094e77e39f0d11e38eaa645e53 /include
parenta1c59d6011138ca2a0d366d1ea6f6369e679df81 (diff)
downloadvolse-hubzilla-e14d5851a76e73675800787dcbcc7582b4dbd5ed.tar.gz
volse-hubzilla-e14d5851a76e73675800787dcbcc7582b4dbd5ed.tar.bz2
volse-hubzilla-e14d5851a76e73675800787dcbcc7582b4dbd5ed.zip
fix template's {{ for }} variable lookup
Diffstat (limited to 'include')
-rw-r--r--include/template_processor.php3
1 files changed, 2 insertions, 1 deletions
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){