diff --git a/config/global.ini.php b/config/global.ini.php index 008b535e0fb..b5b21294bcb 100644 --- a/config/global.ini.php +++ b/config/global.ini.php @@ -609,6 +609,7 @@ Plugins[] = MultiSites Plugins[] = Referrers Plugins[] = UserSettings +Plugins[] = DevicesDetection Plugins[] = Goals Plugins[] = SEO Plugins[] = Events diff --git a/core/Config.php b/core/Config.php index 6c80734258b..1f91d554f07 100644 --- a/core/Config.php +++ b/core/Config.php @@ -148,16 +148,6 @@ public function setTestEnvironment($pathLocal = null, $pathGlobal = null, $pathC // for unit tests, we set that no plugin is installed. This will force // the test initialization to create the plugins tables, execute ALTER queries, etc. $this->configCache['PluginsInstalled'] = array('PluginsInstalled' => array()); - - // DevicesDetection plugin is not yet enabled by default - if (isset($configGlobal['Plugins'])) { - $this->configCache['Plugins'] = $this->configGlobal['Plugins']; - $this->configCache['Plugins']['Plugins'][] = 'DevicesDetection'; - } - if (isset($configGlobal['Plugins_Tracker'])) { - $this->configCache['Plugins_Tracker'] = $this->configGlobal['Plugins_Tracker']; - $this->configCache['Plugins_Tracker']['Plugins_Tracker'][] = 'DevicesDetection'; - } } /** diff --git a/core/Plugin/Manager.php b/core/Plugin/Manager.php index 03c3a9f6414..2bd01d4a8cc 100644 --- a/core/Plugin/Manager.php +++ b/core/Plugin/Manager.php @@ -68,7 +68,6 @@ class Manager extends Singleton // Plugins bundled with core package, disabled by default protected $corePluginsDisabledByDefault = array( 'DBStats', - 'DevicesDetection', 'ExampleCommand', 'ExampleSettingsPlugin', 'ExampleUI', diff --git a/core/Updates/2.4.0-b6.php b/core/Updates/2.4.0-b6.php new file mode 100644 index 00000000000..62ab76c46e6 --- /dev/null +++ b/core/Updates/2.4.0-b6.php @@ -0,0 +1,24 @@ +activatePlugin('DevicesDetection'); + } catch(\Exception $e) { + } + } +} diff --git a/core/Version.php b/core/Version.php index 44f3a2f0f9d..358d0ee45cc 100644 --- a/core/Version.php +++ b/core/Version.php @@ -21,5 +21,5 @@ final class Version * The current Piwik version. * @var string */ - const VERSION = '2.4.0-b5'; + const VERSION = '2.4.0-b6'; } diff --git a/plugins/CoreConsole/Commands/SyncUITestScreenshots.php b/plugins/CoreConsole/Commands/SyncUITestScreenshots.php index 0433657bf10..872b5508432 100644 --- a/plugins/CoreConsole/Commands/SyncUITestScreenshots.php +++ b/plugins/CoreConsole/Commands/SyncUITestScreenshots.php @@ -73,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $downloadTo = "plugins/$testPlugin/tests/UI/expected-ui-screenshots/$file"; } - $output->write("Downloading $file to $downloadTo...\n"); + $output->write("Downloading $file to $downloadTo...\n"); Http::sendHttpRequest("$urlBase/processed-ui-screenshots/$file", $timeout = 60, $userAgent = null, PIWIK_DOCUMENT_ROOT . "/" . $downloadTo); } diff --git a/tests/PHPUnit/UI b/tests/PHPUnit/UI index 1624d2874ee..4a97de9e6df 160000 --- a/tests/PHPUnit/UI +++ b/tests/PHPUnit/UI @@ -1 +1 @@ -Subproject commit 1624d2874eea5d6c32424ee7fb870bfc10ddb388 +Subproject commit 4a97de9e6dfa05f784d07297a4ab27f5e928c914