summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_method_registerdefaultconfighandler.php10
1 files changed, 5 insertions, 5 deletions
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
+}