File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2828 'license_key ' => env ('GEOIP_LICENSE_KEY ' ),
2929 'database_path ' => storage_path ('app/geoip.mmdb ' ),
3030 'update_url ' => 'https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz ' ,
31+ 'locales ' => ['en ' ],
3132 ),
3233
3334 /*
5253 "continent " => "NA " ,
5354 ),
5455
55- );
56+ );
You can’t perform that action at this time.
0 commit comments