mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix on {insert}
This commit is contained in:
@@ -37,7 +37,12 @@ class Smarty_Internal_Nocache_Insert {
|
||||
} else {
|
||||
$_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl->smarty,\$_smarty_tpl);?>";
|
||||
}
|
||||
return "/*%%SmartyNocache:{$_template->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_template->properties['nocache_hash']}%%*/";
|
||||
$_tpl = $_template;
|
||||
while ($_tpl->parent instanceof Smarty_Internal_Template) {
|
||||
$_tpl = $_tpl->parent;
|
||||
}
|
||||
return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user