mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- optimization get rid of __get and __set in source object
This commit is contained in:
@@ -151,7 +151,7 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase
|
||||
$nextCompiler = $compiler;
|
||||
while ($nextCompiler !== $nextCompiler->parent_compiler) {
|
||||
$nextCompiler = $nextCompiler->parent_compiler;
|
||||
preg_match_all($preg, $nextCompiler->template->source->content, $match, PREG_SET_ORDER);
|
||||
preg_match_all($preg, $nextCompiler->template->source->getContent(), $match, PREG_SET_ORDER);
|
||||
foreach ($match as $m) {
|
||||
if (isset($m[3]) && !empty($m[3])) {
|
||||
$itemAttr[strtolower($m[3])] = true;
|
||||
|
||||
Reference in New Issue
Block a user