summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_method_mustcompile.php7
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
+}