From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- lib/smarty3/sysplugins/smarty_internal_method_setdebugtemplate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/smarty3/sysplugins/smarty_internal_method_setdebugtemplate.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_method_setdebugtemplate.php b/lib/smarty3/sysplugins/smarty_internal_method_setdebugtemplate.php index 4ff5d7f..cc9d23e 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_setdebugtemplate.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_setdebugtemplate.php @@ -24,18 +24,18 @@ class Smarty_Internal_Method_SetDebugTemplate * @api Smarty::setDebugTemplate() * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param string $tpl_name + * @param string $tpl_name * * @return \Smarty|\Smarty_Internal_Template * @throws SmartyException if file is not readable */ 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}'"); } $smarty->debug_tpl = $tpl_name; return $obj; } -} \ No newline at end of file +} -- cgit v1.2.3