mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-02 09:24:28 +02:00
Revert "- optimize {section} compiler for speed and size of compiled code"
This reverts commit 1074090473
.
This commit is contained in:
@@ -434,8 +434,7 @@ 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 "\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']";
|
||||
return "(isset(\$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}']) ? \$_smarty_tpl->tpl_vars[{$sectionVar}]->value['{$property}'] : null)";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user