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:
Uwe Tews
2017-10-12 08:21:12 +02:00
parent 34fc5e6b46
commit b271173a2d
14 changed files with 1681 additions and 1802 deletions

View File

@@ -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