From 7085a0c2f7104a56a7e946c43ba0b5736be5f4e7 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 27 Dec 2016 14:47:01 +0100 Subject: * smarty bundled --- .../sysplugins/smarty_internal_nocache_insert.php | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 lib/smarty3/sysplugins/smarty_internal_nocache_insert.php (limited to 'lib/smarty3/sysplugins/smarty_internal_nocache_insert.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_nocache_insert.php b/lib/smarty3/sysplugins/smarty_internal_nocache_insert.php new file mode 100644 index 0000000..6762c28 --- /dev/null +++ b/lib/smarty3/sysplugins/smarty_internal_nocache_insert.php @@ -0,0 +1,53 @@ +assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . + ",\$_smarty_tpl), true);?>"; + } else { + $_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl);?>"; + } + $_tpl = $_template; + while (isset($_tpl->parent) && $_tpl->parent->_objType == 2) { + $_tpl = $_tpl->parent; + } + + return "/*%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/" . $_output . + "/*/%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/"; + } +} -- cgit v1.2.3