Drop support for discontinued freegeoip.net
There is a new service called ipstack, but their free option does not support https, so by default there will not be any geoip service. Bug: T199106 Change-Id: I9f4e59d736b50760f50c6214e2d191e72406d0d9
This commit is contained in:
@@ -125,7 +125,7 @@ class UniversalLanguageSelectorHooks {
|
||||
$out->addModules( 'ext.uls.compactlinks' );
|
||||
}
|
||||
|
||||
if ( $wgULSGeoService ) {
|
||||
if ( is_string( $wgULSGeoService ) ) {
|
||||
$out->addModules( 'ext.uls.geoclient' );
|
||||
}
|
||||
|
||||
@@ -309,10 +309,7 @@ class UniversalLanguageSelectorHooks {
|
||||
|
||||
// Place constant stuff here (not depending on request context)
|
||||
|
||||
if ( $wgULSGeoService === true ) {
|
||||
$wgULSGeoService = 'https://freegeoip.net/json/?callback=?';
|
||||
}
|
||||
if ( $wgULSGeoService ) {
|
||||
if ( is_string( $wgULSGeoService ) ) {
|
||||
$vars['wgULSGeoService'] = $wgULSGeoService;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user