diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-01 00:37:04 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-01 00:37:04 +0400 |
commit | b16d8cf8d7a35625f6e5fd3fc54d701d7b6bc6d4 (patch) | |
tree | 18cd8f71bba7c75e0329ad842b5b70005ac08626 | |
parent | cc2d24ceb1d934d8062d7f2b82314c2f9685adfa (diff) |
refs #546 call the plugins uninstall method before uninstalling it
-rw-r--r-- | core/PluginsManager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/PluginsManager.php b/core/PluginsManager.php index 2f8caad887..7f1772235c 100644 --- a/core/PluginsManager.php +++ b/core/PluginsManager.php @@ -201,6 +201,11 @@ class PluginsManager if(!$this->isPluginInFilesystem($pluginName)) { throw new \Exception("You are trying to uninstall the plugin $pluginName but it was not found in the directory piwik/plugins/"); } + + $this->returnLoadedPluginsInfo(); + $plugin = $this->getLoadedPlugin($pluginName); + $plugin->uninstall(); + self::deletePluginFromFilesystem($pluginName); $this->removePluginFromPluginsConfig($pluginName); |