Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Becker <halfdan@xnorfz.de>2013-03-01 18:19:50 +0400
committerFabian Becker <halfdan@xnorfz.de>2013-03-01 18:19:50 +0400
commit23e77a0f8ccfcb128f9a22ad1b9c2a6715b50505 (patch)
tree8d7121af09cde84f9ccf0625bbd62d9378c1fc53 /plugins/UserCountry
parent44ff74c2880234d6b42086cf0be4e4fdcfae02fe (diff)
More code cleanup and better use of Piwik::log
Diffstat (limited to 'plugins/UserCountry')
-rwxr-xr-xplugins/UserCountry/GeoIPAutoUpdater.php4
-rwxr-xr-xplugins/UserCountry/LocationProvider/GeoIp/Php.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/UserCountry/GeoIPAutoUpdater.php b/plugins/UserCountry/GeoIPAutoUpdater.php
index 912425e998..1f29d8a1bb 100755
--- a/plugins/UserCountry/GeoIPAutoUpdater.php
+++ b/plugins/UserCountry/GeoIPAutoUpdater.php
@@ -112,7 +112,7 @@ class Piwik_UserCountry_GeoIPAutoUpdater
. "'$zippedOutputPath'! (Unknown error)");
}
- Piwik::log("Piwik_UserCountry_GeoIPAutoUpdater: successfully downloaded '$url'");
+ Piwik::log(sprintf("Piwik_UserCountry_GeoIPAutoUpdater: successfully downloaded '%s'", $url));
try
{
@@ -124,7 +124,7 @@ class Piwik_UserCountry_GeoIPAutoUpdater
. "downloading " . "'$url': ".$ex->getMessage());
}
- Piwik::log("Piwik_UserCountry_GeoIPAutoUpdater: successfully updated GeoIP database '$url'");
+ Piwik::log(sprintf("Piwik_UserCountry_GeoIPAutoUpdater: successfully updated GeoIP database '%s'", $url));
}
/**
diff --git a/plugins/UserCountry/LocationProvider/GeoIp/Php.php b/plugins/UserCountry/LocationProvider/GeoIp/Php.php
index f12878344a..c2443822fd 100755
--- a/plugins/UserCountry/LocationProvider/GeoIp/Php.php
+++ b/plugins/UserCountry/LocationProvider/GeoIp/Php.php
@@ -133,7 +133,7 @@ class Piwik_UserCountry_LocationProvider_GeoIp_Php extends Piwik_UserCountry_Loc
$result[self::COUNTRY_CODE_KEY] = geoip_country_code_by_addr($locationGeoIp, $ip);
break;
default: // unknown database type, log warning and fallback to country edition
- Piwik::log("Found unrecognized database type: ".$locationGeoIp->databaseType);
+ Piwik::log(sprintf("Found unrecognized database type: %s", $locationGeoIp->databaseType));
$result[self::COUNTRY_CODE_KEY] = geoip_country_code_by_addr($locationGeoIp, $ip);
break;