From ab5d8d4e07bb3c8230d0285ef8902ef1979fce51 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:39:34 +0200 Subject: Updating Smarty --- .../sysplugins/smarty_internal_nocache_insert.php | 104 ++++++++++----------- 1 file changed, 51 insertions(+), 53 deletions(-) (limited to 'lib/smarty/sysplugins/smarty_internal_nocache_insert.php') diff --git a/lib/smarty/sysplugins/smarty_internal_nocache_insert.php b/lib/smarty/sysplugins/smarty_internal_nocache_insert.php index faae49a..88694dc 100644 --- a/lib/smarty/sysplugins/smarty_internal_nocache_insert.php +++ b/lib/smarty/sysplugins/smarty_internal_nocache_insert.php @@ -1,53 +1,51 @@ -assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . ",\$_smarty_tpl), true);?>"; - } else { - $_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl);?>"; - } - $_tpl = $_template; - while ($_tpl->parent instanceof Smarty_Internal_Template) { - $_tpl = $_tpl->parent; - } - return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/"; - } - -} - -?> +assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . + ',\$_smarty_tpl), true);?>'; + } else { + $_output .= "echo {$_function}(" . var_export($_attr, true) . ',$_smarty_tpl);?>'; + } + $_tpl = $_template; + while ($_tpl->_isSubTpl()) { + $_tpl = $_tpl->parent; + } + return "/*%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/{$_output}/*/%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/"; + } +} -- cgit v1.2.3