- fixed {$smarty.block.parent.foo}

This commit is contained in:
Uwe.Tews
2009-04-10 02:29:46 +00:00
parent 066467ca82
commit 33082844a5
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
04/10/2009
- fixed {$smarty.block.parent.foo}
- implementation of a 'variable' filter as replacement for default modifier
04/09/2009

View File

@@ -83,8 +83,8 @@ class Smarty_Internal_Compile_Smarty extends Smarty_Internal_CompileBase {
case 'global':
return "\$_smarty_tpl->smarty->getGlobalVariable($_index[1])->value";
case 'block':
if ($_index[2] == '\'parent\'') {
return "'" . addcslashes($compiler->template->block_data[trim($_index[1], "'")]['source'], "'") . "'";
if ($_index[1] == '\'parent\'') {
return "'" . addcslashes($compiler->template->block_data[trim($_index[2], "'")]['source'], "'") . "'";
} else {
return "''";
}