Skip to content

Commit f759cd6

Browse files
committed
Set locales in config
1 parent f16f839 commit f759cd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Torann/GeoIP/GeoIP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ private function locate_maxmind($ip)
175175

176176
if (empty($this->maxmind)) {
177177
if ($settings['type'] === 'web_service') {
178-
$this->maxmind = new Client($settings['user_id'], $settings['license_key']);
178+
$this->maxmind = new Client($settings['user_id'], $settings['license_key'], $settings['locales']);
179179
}
180180
else {
181-
$this->maxmind = new Reader($settings['database_path']);
181+
$this->maxmind = new Reader($settings['database_path'], $settings['locales']);
182182
}
183183
}
184184

0 commit comments

Comments
 (0)