mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 05:11:36 +01:00
bugfix $smarty.block.child and $smarty.block.parent could not be used like any
$smarty special variable https://github.com/smarty-php/smarty/issues/393
This commit is contained in:
@@ -51,6 +51,9 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
||||
return '';
|
||||
case 'now':
|
||||
return 'time()';
|
||||
case 'block':
|
||||
$tag = $compiler->getTagCompiler('block');
|
||||
return $tag->compileSpecialVariable(array(), $compiler, $_index);
|
||||
case 'cookies':
|
||||
if (isset($compiler->smarty->security_policy) &&
|
||||
!$compiler->smarty->security_policy->allow_super_globals
|
||||
|
||||
Reference in New Issue
Block a user