diff options
| author | uwetews <uwe.tews@googlemail.com> | 2016-09-11 04:35:52 +0200 |
|---|---|---|
| committer | uwetews <uwe.tews@googlemail.com> | 2016-09-11 04:35:52 +0200 |
| commit | 0a8e47ecb2431913afb1eab4666fbf60bfa3efe4 (patch) | |
| tree | f1be0bd820adb2e060bb853f8350ecbcb8aa8d88 /libs/sysplugins/smarty_internal_method_setdebugtemplate.php | |
| parent | e62b40c4210905502af252cf2b8d6a3ab18b67e4 (diff) | |
| download | smarty-0a8e47ecb2431913afb1eab4666fbf60bfa3efe4.tar.gz smarty-0a8e47ecb2431913afb1eab4666fbf60bfa3efe4.tar.bz2 smarty-0a8e47ecb2431913afb1eab4666fbf60bfa3efe4.zip | |
- improvement move often used code snippets into methods
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}'"); } |
