Index: trunk/extensions/LandingCheck/SpecialLandingCheck.php |
— | — | @@ -23,6 +23,7 @@ |
24 | 24 | $language = $wgRequest->getVal( 'language', 'en' ); |
25 | 25 | |
26 | 26 | $country = $wgRequest->getVal( 'country' ); |
| 27 | + // If no country was passed, try to do GeoIP lookup |
27 | 28 | if ( !$country && function_exists( geoip_country_code_by_name ) ) { |
28 | 29 | $ip = wfGetIP(); |
29 | 30 | if ( IP::isValid( $ip ) ) { |