X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialBlockip.php;h=8a1a841b74c9099e5ae32a58f3cd9c0931e8b526;hb=44d31b681fc83aecc819a78662a5d75a4a8655b7;hp=0a9d2bac6d82068c310ffcad423348a6fbe3ccff;hpb=8182226dd5fa606f1fcf0b6ad91ba02ac32195a6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 0a9d2bac6d..8a1a841b74 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -12,10 +12,11 @@ function wfSpecialBlockip( $par ) { global $wgUser, $wgOut, $wgRequest; - if ( ! $wgUser->isAllowed('block') ) { - $wgOut->sysopRequired(); + if( !$wgUser->isAllowed( 'block' ) ) { + $wgOut->permissionRequired( 'block' ); return; } + $ipb = new IPBlockForm( $par ); $action = $wgRequest->getVal( 'action' ); @@ -46,10 +47,9 @@ class IPBlockForm { $this->BlockExpiry = $wgRequest->getVal( 'wpBlockExpiry', wfMsg('ipbotheroption') ); $this->BlockOther = $wgRequest->getVal( 'wpBlockOther', '' ); } - + function showForm( $err ) { - global $wgOut, $wgUser, $wgLang; - global $wgRequest, $wgSysopUserBans; + global $wgOut, $wgUser, $wgRequest, $wgSysopUserBans; $wgOut->setPagetitle( wfMsg( 'blockip' ) ); $wgOut->addWikiText( wfMsg( 'blockiptext' ) ); @@ -95,7 +95,7 @@ class IPBlockForm { } $token = htmlspecialchars( $wgUser->editToken() ); - + $wgOut->addHTML( "