Skip to content
Extraits de code Groupes Projets
Valider 32e2342a rédigé par mattab's avatar mattab
Parcourir les fichiers

Enable DevicesDetection plugin by default starting in 2.4.0-b6 refs #5329

parent 3a28d26d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -609,6 +609,7 @@ Plugins[] = Dashboard
Plugins[] = MultiSites
Plugins[] = Referrers
Plugins[] = UserSettings
Plugins[] = DevicesDetection
Plugins[] = Goals
Plugins[] = SEO
Plugins[] = Events
......
......@@ -148,16 +148,6 @@ class Config extends Singleton
// 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';
}
}
/**
......
......@@ -68,7 +68,6 @@ class Manager extends Singleton
// Plugins bundled with core package, disabled by default
protected $corePluginsDisabledByDefault = array(
'DBStats',
'DevicesDetection',
'ExampleCommand',
'ExampleSettingsPlugin',
'ExampleUI',
......
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Updates;
use Piwik\Updates;
class Updates_2_4_0_b6 extends Updates
{
public static function update()
{
$pluginManager = \Piwik\Plugin\Manager::getInstance();
try {
$pluginManager->activatePlugin('DevicesDetection');
} catch(\Exception $e) {
}
}
}
......@@ -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';
}
......@@ -73,7 +73,7 @@ class SyncUITestScreenshots extends ConsoleCommand
$downloadTo = "plugins/$testPlugin/tests/UI/expected-ui-screenshots/$file";
}
$output->write("<info>Downloading $file to $downloadTo...</info>\n");
$output->write("<info>Downloading $file to $downloadTo...</info>\n");
Http::sendHttpRequest("$urlBase/processed-ui-screenshots/$file", $timeout = 60, $userAgent = null,
PIWIK_DOCUMENT_ROOT . "/" . $downloadTo);
}
......
Subproject commit 1624d2874eea5d6c32424ee7fb870bfc10ddb388
Subproject commit 4a97de9e6dfa05f784d07297a4ab27f5e928c914
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter