- optimize {section} compiler for speed and size of compiled code

This commit is contained in:
Uwe Tews
2015-07-30 02:45:38 +02:00
parent 20640577a1
commit e9d172d8ac

View File

@@ -38,8 +38,8 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
case 'foreach':
return Smarty_Internal_Compile_Foreach::compileSpecialVariable(array(), $compiler, $_index);
case 'section':
return "\$_smarty_tpl->getVariable('smarty')->value$parameter";
case 'capture':
return Smarty_Internal_Compile_Section::compileSpecialVariable(array(), $compiler, $_index);
case 'capture':
return "Smarty::\$_smarty_vars$parameter";
case 'now':
return 'time()';