diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-11-15 18:33:55 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-11-15 18:33:55 +0300 |
commit | a6464673389f84a5d87b2ba46d8e93aa69254bbc (patch) | |
tree | 853e7ff001c74a02555bca4b250585207855e2d0 /core/Updates | |
parent | e1a329fb2b10d118fe4f1b9d86fb330dd3aa9163 (diff) |
Activate marketplace plugin by default unless marketplace was disabled
Diffstat (limited to 'core/Updates')
-rw-r--r-- | core/Updates/3.0.0-b3.php | 19 |
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); + } + } } |