Fix NS_PROJECT_TALK (bug #7792)
[lhc/web/wiklou.git] / includes / SpecialBlockme.php
index 11f4c73..5bfce4e 100644 (file)
@@ -8,16 +8,15 @@
 /**
  *
  */
-function wfSpecialBlockme()
-{
-       global $wgBlockOpenProxies, $wgOut, $wgProxyKey;
+function wfSpecialBlockme() {
+       global $wgRequest, $wgBlockOpenProxies, $wgOut, $wgProxyKey;
 
        $ip = wfGetIP();
        
-       if ( !$wgBlockOpenProxies || $_REQUEST['ip'] != md5( $ip . $wgProxyKey ) ) {
-               $wgOut->addWikiText( wfMsg( "disabled" ) );
+       if( !$wgBlockOpenProxies || $wgRequest->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) {
+               $wgOut->addWikiText( wfMsg( 'disabled' ) );
                return;
-       }       
+       }
 
        $blockerName = wfMsg( "proxyblocker" );
        $reason = wfMsg( "proxyblockreason" );