From 107409047308eef4246375f77a5d2b7acbb8a722 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Thu, 30 Jul 2015 01:15:22 +0200 Subject: [PATCH] - optimize {section} compiler for speed and size of compiled code --- libs/sysplugins/smarty_internal_compile_section.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/sysplugins/smarty_internal_compile_section.php b/libs/sysplugins/smarty_internal_compile_section.php index c2ec19fa..47c4778c 100644 --- a/libs/sysplugins/smarty_internal_compile_section.php +++ b/libs/sysplugins/smarty_internal_compile_section.php @@ -434,7 +434,8 @@ class Smarty_Internal_Compile_Section extends Smarty_Internal_CompileBase } $property = strtolower($property); $sectionVar = "'__section_{$name}'"; - return "(isset(\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}'] : null)"; + //return "(isset(\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}'] : null)"; + return "\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']"; } }