function showForm( $err ) {
global $wgOut, $wgUser, $wgLang, $wgBlockExpiryOptions;
- global $wgRequest;
+ global $wgRequest, $wgSysopUserBans;
$wgOut->setPagetitle( htmlspecialchars( wfMsg( 'blockip' ) ) );
$wgOut->addWikiText( htmlspecialchars( wfMsg( 'blockiptext' ) ) );
- $mIpaddress = htmlspecialchars( wfMsg( 'ipaddress' ) );
+ if($wgSysopUserBans) {
+ $mIpaddress = htmlspecialchars( wfMsg( 'ipadressorusername' ) );
+ } else {
+ $mIpaddress = htmlspecialchars( wfMsg( 'ipaddress' ) );
+ }
$mIpbexpiry = htmlspecialchars( wfMsg( 'ipbexpiry' ) );
$mIpbreason = htmlspecialchars( wfMsg( 'ipbreason' ) );
$mIpbsubmit = htmlspecialchars( wfMsg( 'ipbsubmit' ) );
accordance with [[Project:Policy|policy]].
Fill in a specific reason below (for example, citing particular
pages that were vandalized).",
-'ipaddress' => 'IP Address/username',
+'ipaddress' => 'IP Address',
+'ipadressorusername' => 'IP Address or username',
'ipbexpiry' => 'Expiry',
'ipbreason' => 'Reason',
'ipbsubmit' => 'Block this user',