summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php b/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php
index 80b801c..a9fb78d 100644
--- a/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php
+++ b/lib/smarty3/sysplugins/smarty_internal_method_registerdefaultpluginhandler.php
@@ -25,14 +25,14 @@ class Smarty_Internal_Method_RegisterDefaultPluginHandler
* @link http://www.smarty.net/docs/en/api.register.default.plugin.handler.tpl
*
* @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 registerDefaultPluginHandler(Smarty_Internal_TemplateBase $obj, $callback)
{
- $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
+ $smarty = $obj->_getSmartyObj();
if (is_callable($callback)) {
$smarty->default_plugin_handler_func = $callback;
} else {
@@ -40,4 +40,4 @@ class Smarty_Internal_Method_RegisterDefaultPluginHandler
}
return $obj;
}
-} \ No newline at end of file
+}