diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-05-08 01:38:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 01:38:59 +0300 |
commit | 1ac50c2a702bf22189a246c99b2dc9c0e7979217 (patch) | |
tree | fb7de96e52c0d9484c194960e4e2cb119b30d4ba /plugins/GeoIp2 | |
parent | 6d744db7f3f7a55fc4bb1ca573e937f0832c642b (diff) |
Fix GeoIP2 autoupdate (#15916)
Diffstat (limited to 'plugins/GeoIp2')
-rw-r--r-- | plugins/GeoIp2/GeoIP2AutoUpdater.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/GeoIp2/GeoIP2AutoUpdater.php b/plugins/GeoIp2/GeoIP2AutoUpdater.php index 212a4bfaee..989c1bb5c9 100644 --- a/plugins/GeoIp2/GeoIP2AutoUpdater.php +++ b/plugins/GeoIp2/GeoIP2AutoUpdater.php @@ -590,7 +590,7 @@ class GeoIP2AutoUpdater extends Task // test the provider. on error, we rename the broken DB. try { // check database directly, as location provider ignores invalid database errors - $pathToDb = LocationProviderGeoIp2::getPathToGeoIpDatabase($customNames); + $pathToDb = LocationProviderGeoIp2::getPathToGeoIpDatabase($customNames[$type]); $reader = new Reader($pathToDb); $location = $provider->getLocation(array('ip' => LocationProviderGeoIp2::TEST_IP)); |