Index: trunk/extensions/FundraiserLandingPage/FundraiserLandingPage.body.php |
— | — | @@ -45,17 +45,8 @@ |
46 | 46 | |
47 | 47 | # get the country code |
48 | 48 | $country = $wgRequest->getVal( 'country' ); |
49 | | - // If no country was passed do a GeoIP lookup |
| 49 | + # If country still isn't set, set it to the default |
50 | 50 | if ( !$country ) { |
51 | | - if ( function_exists( 'geoip_country_code_by_name' ) ) { |
52 | | - $ip = wfGetIP(); |
53 | | - if ( IP::isValid( $ip ) ) { |
54 | | - $country = geoip_country_code_by_name( $ip ); |
55 | | - } |
56 | | - } |
57 | | - } |
58 | | - // If country still isn't set, set it to the default |
59 | | - if ( !$country ) { |
60 | 51 | $country = $wgFundraiserLPDefaults[ 'country' ]; |
61 | 52 | } |
62 | 53 | $country = $this->make_safe( $country ); |