summaryrefslogtreecommitdiff
path: root/libs/sysplugins/smarty_internal_method_unregisterplugin.php
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2016-09-11 04:35:52 +0200
committeruwetews <uwe.tews@googlemail.com>2016-09-11 04:35:52 +0200
commit0a8e47ecb2431913afb1eab4666fbf60bfa3efe4 (patch)
treef1be0bd820adb2e060bb853f8350ecbcb8aa8d88 /libs/sysplugins/smarty_internal_method_unregisterplugin.php
parente62b40c4210905502af252cf2b8d6a3ab18b67e4 (diff)
downloadsmarty-0a8e47ecb2431913afb1eab4666fbf60bfa3efe4.tar.gz
smarty-0a8e47ecb2431913afb1eab4666fbf60bfa3efe4.tar.bz2
smarty-0a8e47ecb2431913afb1eab4666fbf60bfa3efe4.zip
- improvement move often used code snippets into methods
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 ]);
}