diff options
Diffstat (limited to 'plugins')
-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)); |