From fa10e0945ecd45bfe78a2c8fb015a43092b4944b Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 10 Dec 2015 14:02:22 +0100 Subject: bug #385 update to smarty-3.1.28-dev (from Github) --- .../sysplugins/smarty_internal_nocache_insert.php | 32 ++++++++++------------ 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'include/smarty/libs/sysplugins/smarty_internal_nocache_insert.php') diff --git a/include/smarty/libs/sysplugins/smarty_internal_nocache_insert.php b/include/smarty/libs/sysplugins/smarty_internal_nocache_insert.php index 64a2b1e1b..b3d5fa86a 100644 --- a/include/smarty/libs/sysplugins/smarty_internal_nocache_insert.php +++ b/include/smarty/libs/sysplugins/smarty_internal_nocache_insert.php @@ -1,31 +1,31 @@ "; } $_tpl = $_template; - while ($_tpl->parent instanceof Smarty_Internal_Template) { + while (isset($_tpl->parent) && $_tpl->parent->_objType == 2) { $_tpl = $_tpl->parent; } - return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/"; - } + return "/*%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->compiled->nocache_hash}%%*/"; + } } - -?> -- cgit v1.2.3