From eab8a101e7a3fcbb41e01a574985e06c5a3775de Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 18 Oct 2018 02:40:38 +0200 Subject: Updating Smarty --- .../sysplugins/smarty_internal_method_unregisterresource.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/smarty3/sysplugins/smarty_internal_method_unregisterresource.php') diff --git a/lib/smarty3/sysplugins/smarty_internal_method_unregisterresource.php b/lib/smarty3/sysplugins/smarty_internal_method_unregisterresource.php index f53d9bc..a79db42 100644 --- a/lib/smarty3/sysplugins/smarty_internal_method_unregisterresource.php +++ b/lib/smarty3/sysplugins/smarty_internal_method_unregisterresource.php @@ -25,16 +25,16 @@ class Smarty_Internal_Method_UnregisterResource * @link http://www.smarty.net/docs/en/api.unregister.resource.tpl * * @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj - * @param string $type name of resource type + * @param string $type name of resource type * * @return \Smarty|\Smarty_Internal_Template */ public function unregisterResource(Smarty_Internal_TemplateBase $obj, $type) { - $smarty = isset($obj->smarty) ? $obj->smarty : $obj; + $smarty = $obj->_getSmartyObj(); if (isset($smarty->registered_resources[ $type ])) { unset($smarty->registered_resources[ $type ]); } return $obj; } -} \ No newline at end of file +} -- cgit v1.2.3