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

This reverts commit 1074090473.
This commit is contained in:
Uwe Tews
2015-07-30 02:03:29 +02:00
parent 1074090473
commit 20640577a1

View File

@@ -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)";
}
}