summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_method_mustcompile.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sysplugins/smarty_internal_method_mustcompile.php')
-rw-r--r--libs/sysplugins/smarty_internal_method_mustcompile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_method_mustcompile.php b/libs/sysplugins/smarty_internal_method_mustcompile.php
index 718b0a10..0950ba9c 100644
--- a/libs/sysplugins/smarty_internal_method_mustcompile.php
+++ b/libs/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 = '';