From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- .../smarty_internal_method_registerdefaultconfighandler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php b/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php index 370aa38..b340f17 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php @@ -21,22 +21,22 @@ class Smarty_Internal_Method_RegisterDefaultConfigHandler /** * Register config default handler * - * @api Smarty::registerDefaultConfigHandler() + * @api Smarty::registerDefaultConfigHandler() * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param callable $callback class/method name + * @param callable $callback class/method name * * @return \Smarty|\Smarty_Internal_Template * @throws SmartyException if $callback is not callable */ public function registerDefaultConfigHandler(Smarty_Internal_TemplateBase $obj, $callback) { - $smarty = isset($obj->smarty) ? $obj->smarty : $obj; + $smarty = $obj->_getSmartyObj(); if (is_callable($callback)) { $smarty->default_config_handler_func = $callback; } else { - throw new SmartyException("Default config handler not callable"); + throw new SmartyException('Default config handler not callable'); } return $obj; } -} \ No newline at end of file +} -- cgit v1.2.3