diff options
Diffstat (limited to 'libs/sysplugins/smarty_internal_method_setdebugtemplate.php')
| -rw-r--r-- | libs/sysplugins/smarty_internal_method_setdebugtemplate.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_method_setdebugtemplate.php b/libs/sysplugins/smarty_internal_method_setdebugtemplate.php index 4ff5d7f8..76c87deb 100644 --- a/libs/sysplugins/smarty_internal_method_setdebugtemplate.php +++ b/libs/sysplugins/smarty_internal_method_setdebugtemplate.php @@ -31,7 +31,7 @@ class Smarty_Internal_Method_SetDebugTemplate */ public function setDebugTemplate(Smarty_Internal_TemplateBase $obj, $tpl_name) { - $smarty = isset($obj->smarty) ? $obj->smarty : $obj; + $smarty = $obj->_getSmartyObj(); if (!is_readable($tpl_name)) { throw new SmartyException("Unknown file '{$tpl_name}'"); } |
