diff options
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_method_unregisterobject.php')
-rw-r--r-- | lib/smarty3/sysplugins/smarty_internal_method_unregisterobject.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_method_unregisterobject.php b/lib/smarty3/sysplugins/smarty_internal_method_unregisterobject.php index 56c531e..1e592b3 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_unregisterobject.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_unregisterobject.php @@ -25,16 +25,16 @@ class Smarty_Internal_Method_UnregisterObject * @link http://www.smarty.net/docs/en/api.unregister.object.tpl * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param string $object_name name of object + * @param string $object_name name of object * * @return \Smarty|\Smarty_Internal_Template */ public function unregisterObject(Smarty_Internal_TemplateBase $obj, $object_name) { - $smarty = isset($obj->smarty) ? $obj->smarty : $obj; + $smarty = $obj->_getSmartyObj(); if (isset($smarty->registered_objects[ $object_name ])) { unset($smarty->registered_objects[ $object_name ]); } return $obj; } -}
\ No newline at end of file +} |