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,7 +38,7 @@ 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";
|
||||
return Smarty_Internal_Compile_Section::compileSpecialVariable(array(), $compiler, $_index);
|
||||
case 'capture':
|
||||
return "Smarty::\$_smarty_vars$parameter";
|
||||
case 'now':
|
||||
|
Reference in New Issue
Block a user