diff options
| author | uwetews <uwe.tews@googlemail.com> | 2016-09-11 04:35:52 +0200 |
|---|---|---|
| committer | uwetews <uwe.tews@googlemail.com> | 2016-09-11 04:35:52 +0200 |
| commit | 0a8e47ecb2431913afb1eab4666fbf60bfa3efe4 (patch) | |
| tree | f1be0bd820adb2e060bb853f8350ecbcb8aa8d88 /libs/sysplugins/smarty_internal_method_unregisterplugin.php | |
| parent | e62b40c4210905502af252cf2b8d6a3ab18b67e4 (diff) | |
| download | smarty-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.php | 2 |
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 ]); } |
