summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_method_unregisterplugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'libs/sysplugins/smarty_internal_method_unregisterplugin.php')
-rw-r--r--libs/sysplugins/smarty_internal_method_unregisterplugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_method_unregisterplugin.php b/libs/sysplugins/smarty_internal_method_unregisterplugin.php
index 3fd8b147..b5f0d505 100644
--- a/libs/sysplugins/smarty_internal_method_unregisterplugin.php
+++ b/libs/sysplugins/smarty_internal_method_unregisterplugin.php
@@ -32,7 +32,7 @@ class Smarty_Internal_Method_UnregisterPlugin
*/
public function unregisterPlugin(Smarty_Internal_TemplateBase $obj, $type, $name)
{
- $smarty = isset($obj->smarty) ? $obj->smarty : $obj;
+ $smarty = $obj->_getSmartyObj();
if (isset($smarty->registered_plugins[ $type ][ $name ])) {
unset($smarty->registered_plugins[ $type ][ $name ]);
}