From 0a8e47ecb2431913afb1eab4666fbf60bfa3efe4 Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 11 Sep 2016 04:35:52 +0200 Subject: - improvement move often used code snippets into methods --- libs/sysplugins/smarty_internal_method_unregisterplugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/sysplugins/smarty_internal_method_unregisterplugin.php') 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 ]); } -- cgit v1.3