diff options
Diffstat (limited to 'core/Updates/3.13.1-b2.php')
-rw-r--r-- | core/Updates/3.13.1-b2.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Updates/3.13.1-b2.php b/core/Updates/3.13.1-b2.php index 3def0a5121..e2bc0517af 100644 --- a/core/Updates/3.13.1-b2.php +++ b/core/Updates/3.13.1-b2.php @@ -35,9 +35,10 @@ class Updates_3_13_1_b2 extends PiwikUpdates public function getMigrations(Updater $updater) { + $geoIpLiteUrl = 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz'; $optionTable = Common::prefixTable('option'); $migration1 = $this->migration->db->boundSql("UPDATE `$optionTable` SET option_value = ? WHERE option_name = ? AND option_value = ?", - [GeoIp2::getDbIpLiteUrl(), GeoIP2AutoUpdater::LOC_URL_OPTION_NAME, GeoIp2::GEO_LITE_URL]); + [GeoIp2::getDbIpLiteUrl(), GeoIP2AutoUpdater::LOC_URL_OPTION_NAME, $geoIpLiteUrl]); $migration2 = $this->migration->db->boundSql("UPDATE `$optionTable` SET option_value = ? WHERE option_name = ? AND option_value = ?", [GeoIp2::getDbIpLiteUrl('country'), GeoIP2AutoUpdater::LOC_URL_OPTION_NAME, self::GEO_LITE_COUNTRY_URL]); return [$migration1, $migration2]; |