mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 09:24:28 +02:00
- optimize {section} compiler for speed and size of compiled code
This commit is contained in:
@@ -38,8 +38,8 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
case 'foreach':
|
case 'foreach':
|
||||||
return Smarty_Internal_Compile_Foreach::compileSpecialVariable(array(), $compiler, $_index);
|
return Smarty_Internal_Compile_Foreach::compileSpecialVariable(array(), $compiler, $_index);
|
||||||
case 'section':
|
case 'section':
|
||||||
return "\$_smarty_tpl->getVariable('smarty')->value$parameter";
|
return Smarty_Internal_Compile_Section::compileSpecialVariable(array(), $compiler, $_index);
|
||||||
case 'capture':
|
case 'capture':
|
||||||
return "Smarty::\$_smarty_vars$parameter";
|
return "Smarty::\$_smarty_vars$parameter";
|
||||||
case 'now':
|
case 'now':
|
||||||
return 'time()';
|
return 'time()';
|
||||||
|
Reference in New Issue
Block a user