Index: trunk/core/kernel/parser/template_parser.php =================================================================== diff -u -N -r4880 -r5219 --- trunk/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 4880) +++ trunk/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 5219) @@ -90,6 +90,7 @@ function SetParam($name, $value) { $this->Params[strtolower($name)] = $value; + $this->AddParam('/[{]{0,1}\$'.$name.'[}]{0,1}/i', $val, 0); } function SetBuffer($body) @@ -263,13 +264,13 @@ //getting prefix_tag upto first space, tab or line break into regs[1] preg_match("/^([^ \t\n]*)(.*)/", $tag, $regs); $tag_part = $regs[1]; - + if (strpos($tag_part, '_') !== false) { list($prefix, $the_tag) = explode('_', $tag, 2); /*preg_match('/(.*)_(.*)/', $tag_part, $rets); $prefix = $rets[1]; $the_tag = $rets[2].$regs[2];*/ - + $tag = $prefix.':'.$the_tag; } else { @@ -406,6 +407,7 @@ $this->CompiledBuffer .= 'global $application;'."\n"; $this->CompiledBuffer .= '$params =& $application->Parser->Params;'."\n"; + $this->CompiledBuffer .= 'extract($params);'."\n"; $this->CompiledBuffer .= '$o = \'\';'."\n"; }