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:
Niklas Laxström
2018-09-07 09:10:43 +02:00
committed by Krinkle
parent 4e067715dc
commit 1857627c2f
2 changed files with 4 additions and 7 deletions

View File

@@ -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;
}