mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
- fixed {$smarty.block.parent.foo}
This commit is contained in:
@@ -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
|
||||
|
@@ -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 "''";
|
||||
}
|
||||
|
Reference in New Issue
Block a user