diff options
author | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
commit | eab8a101e7a3fcbb41e01a574985e06c5a3775de (patch) | |
tree | 60f201da5984b0c3638d10da02bba42b61aa3177 /lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php | |
parent | 7f38be342c1495aeca418286c15c25c18ac9e142 (diff) |
Updating Smarty
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php')
-rw-r--r-- | lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php | 7 |
1 files changed, 3 insertions, 4 deletions
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 +} |