From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php b/lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php index 718b0a1..3931883 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php @@ -31,7 +31,7 @@ class Smarty_Internal_Method_MustCompile public function mustCompile(Smarty_Internal_Template $_template) { if (!$_template->source->exists) { - if (isset($_template->parent) && $_template->parent->_objType == 2) { + if ($_template->_isSubTpl()) { $parent_resource = " in '$_template->parent->template_resource}'"; } else { $parent_resource = ''; @@ -41,11 +41,10 @@ class Smarty_Internal_Method_MustCompile if ($_template->mustCompile === null) { $_template->mustCompile = (!$_template->source->handler->uncompiled && ($_template->smarty->force_compile || $_template->source->handler->recompiled || - !$_template->compiled->exists || ($_template->smarty->compile_check && + !$_template->compiled->exists || ($_template->compile_check && $_template->compiled->getTimeStamp() < $_template->source->getTimeStamp()))); } - return $_template->mustCompile; } -} \ No newline at end of file +} -- cgit v1.2.3