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:
authormattab <matthieu.aubry@gmail.com>2016-11-15 18:33:55 +0300
committermattab <matthieu.aubry@gmail.com>2016-11-15 18:33:55 +0300
commita6464673389f84a5d87b2ba46d8e93aa69254bbc (patch)
tree853e7ff001c74a02555bca4b250585207855e2d0
parente1a329fb2b10d118fe4f1b9d86fb330dd3aa9163 (diff)
Activate marketplace plugin by default unless marketplace was disabled
-rw-r--r--core/Updates/3.0.0-b3.php19
1 files changed, 13 insertions, 6 deletions
diff --git a/core/Updates/3.0.0-b3.php b/core/Updates/3.0.0-b3.php
index 898f669eeb..01fc34e79b 100644
--- a/core/Updates/3.0.0-b3.php
+++ b/core/Updates/3.0.0-b3.php
@@ -35,13 +35,10 @@ class Updates_3_0_0_b3 extends Updates
$this->removeOldMarketplaceEnabledConfig();
if ($isMarketplaceEnabled) {
- $pluginManager = Plugin\Manager::getInstance();
- $pluginName = 'Marketplace';
-
- if (!$pluginManager->isPluginActivated($pluginName)) {
- $pluginManager->activatePlugin($pluginName);
- }
+ $this->activateMarketplacePlugin();
}
+ } else {
+ $this->activateMarketplacePlugin();
}
}
@@ -62,4 +59,14 @@ class Updates_3_0_0_b3 extends Updates
$config->forceSave();
}
}
+
+ public function activateMarketplacePlugin()
+ {
+ $pluginManager = Plugin\Manager::getInstance();
+ $pluginName = 'Marketplace';
+
+ if (!$pluginManager->isPluginActivated($pluginName)) {
+ $pluginManager->activatePlugin($pluginName);
+ }
+ }
}