Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-10-01 00:37:04 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-01 00:37:04 +0400
commitb16d8cf8d7a35625f6e5fd3fc54d701d7b6bc6d4 (patch)
tree18cd8f71bba7c75e0329ad842b5b70005ac08626
parentcc2d24ceb1d934d8062d7f2b82314c2f9685adfa (diff)
refs #546 call the plugins uninstall method before uninstalling it
-rw-r--r--core/PluginsManager.php5
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);