Author: lindner
Date: Mon Jul 26 19:04:03 2010
New Revision: 979411
URL: http://svn.apache.org/viewvc?rev=979411&view=rev
Log:
SHINDIG-1397 | Patch from Bastian Hofmann | TemplateParser does not put
childnodes of template call into current DataContext
Modified:
shindig/trunk/php/src/gadgets/templates/TemplateParser.php
Modified: shindig/trunk/php/src/gadgets/templates/TemplateParser.php
URL:
http://svn.apache.org/viewvc/shindig/trunk/php/src/gadgets/templates/TemplateParser.php?rev=979411&r1=979410&r2=979411&view=diff
==============================================================================
--- shindig/trunk/php/src/gadgets/templates/TemplateParser.php (original)
+++ shindig/trunk/php/src/gadgets/templates/TemplateParser.php Mon Jul 26
19:04:03 2010
@@ -138,6 +138,7 @@ class TemplateParser {
if (isset($childNode->tagName) && ! empty($childNode->tagName)) {
$nodeParam = ($pos = strpos($childNode->tagName, ':')) ?
trim(substr($childNode->tagName, $pos + 1)) : trim($childNode->tagName);
$this->dataContext['_os_render_nodes'][$nodeParam] = $childNode;
+ $myContext[$nodeParam] = $this->nodeAttributesToScope($childNode);
}
}
}