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.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/sysplugins/smarty_internal_method_unregisterplugin.php b/libs/sysplugins/smarty_internal_method_unregisterplugin.php
index 06cb2d35..3fd8b147 100644
--- a/libs/sysplugins/smarty_internal_method_unregisterplugin.php
+++ b/libs/sysplugins/smarty_internal_method_unregisterplugin.php
@@ -25,16 +25,16 @@ class Smarty_Internal_Method_UnregisterPlugin
* @link http://www.smarty.net/docs/en/api.unregister.plugin.tpl
*
* @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
- * @param string $type plugin type
- * @param string $name name of template tag
+ * @param string $type plugin type
+ * @param string $name name of template tag
*
* @return \Smarty|\Smarty_Internal_Template
- */
+ */
public function unregisterPlugin(Smarty_Internal_TemplateBase $obj, $type, $name)
{
$smarty = isset($obj->smarty) ? $obj->smarty : $obj;
- if (isset($smarty->registered_plugins[$type][$name])) {
- unset($smarty->registered_plugins[$type][$name]);
+ if (isset($smarty->registered_plugins[ $type ][ $name ])) {
+ unset($smarty->registered_plugins[ $type ][ $name ]);
}
return $obj;
}