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

fixing build, another attempt

parent 6735f42b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -300,6 +300,7 @@ abstract class Piwik_UserCountry_LocationProvider ...@@ -300,6 +300,7 @@ abstract class Piwik_UserCountry_LocationProvider
"Invalid provider ID '$providerId'. The provider either does not exist or is not available"); "Invalid provider ID '$providerId'. The provider either does not exist or is not available");
} }
Piwik_SetOption(self::CURRENT_PROVIDER_OPTION_NAME, $providerId); Piwik_SetOption(self::CURRENT_PROVIDER_OPTION_NAME, $providerId);
Piwik_Tracker_Cache::clearCacheGeneral();
return $provider; return $provider;
} }
......
...@@ -203,6 +203,11 @@ class Test_Piwik_Integration_ManyVisitorsOneWebsiteTest extends IntegrationTestC ...@@ -203,6 +203,11 @@ class Test_Piwik_Integration_ManyVisitorsOneWebsiteTest extends IntegrationTestC
Piwik_UserCountry_LocationProvider::$providers = null; Piwik_UserCountry_LocationProvider::$providers = null;
Piwik_UserCountry_LocationProvider::setCurrentProvider(self::GEOIP_IMPL_TO_TEST); Piwik_UserCountry_LocationProvider::setCurrentProvider(self::GEOIP_IMPL_TO_TEST);
if (Piwik_UserCountry_LocationProvider::getCurrentProviderId() !== self::GEOIP_IMPL_TO_TEST)
{
throw new Exception("Failed to set the current location provider to '".self::GEOIP_IMPL_TO_TEST."'.");
}
$possibleFiles = Piwik_UserCountry_LocationProvider_GeoIp::$dbNames['loc']; $possibleFiles = Piwik_UserCountry_LocationProvider_GeoIp::$dbNames['loc'];
if (Piwik_UserCountry_LocationProvider_GeoIp::getPathToGeoIpDatabase($possibleFiles) === false) if (Piwik_UserCountry_LocationProvider_GeoIp::getPathToGeoIpDatabase($possibleFiles) === false)
{ {
......
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