mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 01:44:26 +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);
|
$property = strtolower($property);
|
||||||
$sectionVar = "'__section_{$name}'";
|
$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}']";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user