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:
Diffstat (limited to 'core/Updates/4.0.0-b2.php')
-rw-r--r--core/Updates/4.0.0-b2.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Updates/4.0.0-b2.php b/core/Updates/4.0.0-b2.php
index a872fa1e6b..4a6309ea08 100644
--- a/core/Updates/4.0.0-b2.php
+++ b/core/Updates/4.0.0-b2.php
@@ -9,6 +9,7 @@
namespace Piwik\Updates;
+use Piwik\Plugin\Manager;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Plugins\UserCountry\LocationProvider;
use Piwik\Updater;
@@ -51,6 +52,10 @@ class Updates_4_0_0_b2 extends PiwikUpdates
// keep piwik_ignore for existing installs
$migrations[] = $this->migration->config->set('Tracker', 'ignore_visits_cookie_name', 'piwik_ignore');
+ if (!Manager::getInstance()->isPluginActivated('CustomDimensions')) {
+ $migrations[] = $this->migration->plugin->activate('CustomDimensions');
+ }
+
return $migrations;
}