]> git.mxchange.org Git - friendica.git/commitdiff
fix template's {{ for }} variable lookup
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 13 Jun 2011 10:53:41 +0000 (12:53 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 13 Jun 2011 10:53:41 +0000 (12:53 +0200)
include/template_processor.php

index d8dfbaedb109dd0746a00e918ec7e47a75af1556..3dc249c403fc6b3c3513eb84994d1211b87301d9 100644 (file)
@@ -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){