diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-06-30 01:14:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 01:14:18 +0300 |
commit | d7dced0928c7457f4e14fb571d897ac927b95134 (patch) | |
tree | 5432a0a6ded1d9f9f2d1d0df8a2120bd020e9b14 /core/Updates | |
parent | 544cbc826296cab3db3fd7c6eace2c14ec41245a (diff) |
Include CustomDimensions plugin in core (#16086)
Diffstat (limited to 'core/Updates')
-rw-r--r-- | core/Updates/4.0.0-b2.php | 5 |
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; } |