Partial revert of r32982; old Title method is fine here
[lhc/web/wiklou.git] / includes / SpecialBlockme.php
index c2cb1a5..6c9dea0 100644 (file)
@@ -13,13 +13,12 @@ function wfSpecialBlockme() {
        $ip = wfGetIP();
        
        if( !$wgBlockOpenProxies || $wgRequest->getText( 'ip' ) != md5( $ip . $wgProxyKey ) ) {
-               $wgOut->addWikiText( wfMsg( 'disabled' ) );
+               $wgOut->addWikiMsg( 'proxyblocker-disabled' );
                return;
        }
 
        $blockerName = wfMsg( "proxyblocker" );
        $reason = wfMsg( "proxyblockreason" );
-       $success = wfMsg( "proxyblocksuccess" );
 
        $u = User::newFromName( $blockerName );
        $id = $u->idForName();
@@ -34,6 +33,6 @@ function wfSpecialBlockme() {
        $block = new Block( $ip, 0, $id, $reason, wfTimestampNow() );
        $block->insert();
 
-       $wgOut->addWikiText( $success );
+       $wgOut->addWikiMsg( "proxyblocksuccess" );
 }
-?>
+