Skip to content
Extraits de code Groupes Projets
Valider e6b8c129 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Fixing build and removing some references to AnonymizeIP.

parent bb65f51e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -65,7 +65,6 @@ class Manager extends Singleton ...@@ -65,7 +65,6 @@ class Manager extends Singleton
); );
protected $corePluginsDisabledByDefault = array( protected $corePluginsDisabledByDefault = array(
'AnonymizeIP',
'DBStats', 'DBStats',
'DevicesDetection', 'DevicesDetection',
'ExampleCommand', 'ExampleCommand',
......
...@@ -755,9 +755,8 @@ class Tracker ...@@ -755,9 +755,8 @@ class Tracker
if (Common::getRequestVar('forceIpAnonymization', false, null, $args) == 1) { if (Common::getRequestVar('forceIpAnonymization', false, null, $args) == 1) {
self::updateTrackerConfig('ip_address_mask_length', 2); self::updateTrackerConfig('ip_address_mask_length', 2);
$section = Config::getInstance()->Plugins_Tracker; self::connectDatabaseIfNotConnected();
$section['Plugins_Tracker'][] = "AnonymizeIP"; \Piwik\Plugins\PrivacyManager\IPAnonymizer::activate();
Config::getInstance()->Plugins_Tracker = $section;
$forceIpAnonymization = true; $forceIpAnonymization = true;
} }
...@@ -780,9 +779,6 @@ class Tracker ...@@ -780,9 +779,6 @@ class Tracker
self::setForceVisitorId($customVisitorId); self::setForceVisitorId($customVisitorId);
} }
$pluginsDisabled = array('Provider'); $pluginsDisabled = array('Provider');
if (!$forceIpAnonymization) {
$pluginsDisabled[] = 'AnonymizeIP';
}
// Disable provider plugin, because it is so slow to do many reverse ip lookups // Disable provider plugin, because it is so slow to do many reverse ip lookups
self::setPluginsNotToLoad($pluginsDisabled); self::setPluginsNotToLoad($pluginsDisabled);
......
...@@ -94,7 +94,7 @@ class Visit implements VisitInterface ...@@ -94,7 +94,7 @@ class Visit implements VisitInterface
* Triggered after visits are tested for exclusion so plugins can modify the IP address * Triggered after visits are tested for exclusion so plugins can modify the IP address
* persisted with a visit. * persisted with a visit.
* *
* This event is primarily used by the **AnonymizeIP** plugin to anonymize IP addresses. * This event is primarily used by the **PrivacyManager** plugin to anonymize IP addresses.
* *
* @param string &$ip The visitor's IP address. * @param string &$ip The visitor's IP address.
*/ */
......
Subproject commit 78ae6de0ad1c3a638f70f9aedf52b362fed4b6e9 Subproject commit cc7e2a2e6473b3f7efdc75d67fde88957a4124b4
Subproject commit 700c71b483a661da6a5fef7f49070de85631a576 Subproject commit f01efa321b1add9e25e1fa84ec79048913831aa3
...@@ -122,7 +122,6 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase ...@@ -122,7 +122,6 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase
public function testCheckThatGivenPluginsAreDisabledByDefault() public function testCheckThatGivenPluginsAreDisabledByDefault()
{ {
$pluginsShouldBeDisabled = array( $pluginsShouldBeDisabled = array(
'AnonymizeIP',
'DBStats' 'DBStats'
); );
foreach ($pluginsShouldBeDisabled as $pluginName) { foreach ($pluginsShouldBeDisabled as $pluginName) {
......
...@@ -204,6 +204,9 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase ...@@ -204,6 +204,9 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
\Piwik\SettingsPiwik::$cachedKnownSegmentsToArchive = null; \Piwik\SettingsPiwik::$cachedKnownSegmentsToArchive = null;
\Piwik\CacheFile::$invalidateOpCacheBeforeRead = true; \Piwik\CacheFile::$invalidateOpCacheBeforeRead = true;
\Piwik\Plugins\PrivacyManager\IPAnonymizer::deactivate();
\Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker::deactivate();
} }
public static function tearDownAfterClass() public static function tearDownAfterClass()
......
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