r77520 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77519‎ | r77520 | r77521 >
Date:02:46, 1 December 2010
Author:kaldari
Status:ok
Tags:
Comment:
safety check
Modified paths:
  • /trunk/extensions/LandingCheck/SpecialLandingCheck.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LandingCheck/SpecialLandingCheck.php
@@ -23,7 +23,7 @@
2424 $language = $wgRequest->getVal( 'language', 'en' );
2525
2626 $country = $wgRequest->getVal( 'country' );
27 - if ( !$country ) {
 27+ if ( !$country && function_exists( geoip_country_code_by_name ) ) {
2828 $ip = wfGetIP();
2929 if ( IP::isValid( $ip ) ) {
3030 $country = geoip_country_code_by_name( $ip );

Status & tagging log