- bugfix on compiling modifiers within $smarty special vars like {$smarty.post.{$foo|lower}}

This commit is contained in:
uwe.tews@googlemail.com
2010-10-28 20:11:01 +00:00
parent ecd1793bdf
commit 0acba360d3
2 changed files with 4 additions and 1 deletions
@@ -22,7 +22,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
*/
public function compile($args, $compiler)
{
$_index = explode(',', str_replace(array(']['), array(','), substr($args, 1, strlen($args)-2)));
$_index = preg_split("/\]\[/",substr($args, 1, strlen($args)-2));
$compiled_ref = ' ';
$variable = trim($_index[0], "'");
switch ($variable) {