- $this->AlreadyBlocked = false;
-
- if( $this->BlockAddress && !$wgRequest->wasPosted() ){
- $this->mBlock = new Block();
- if( $this->mBlock->load($this->BlockAddress) ) {
- $this->AlreadyBlocked = true;
- $this->BlockReason = wfMsgForContent( 'ipb_modifying_block' );
- $this->BlockReasonList = $wgRequest->getText( 'wpBlockReasonList' );
- $this->BlockExpiry = wfMsg('ipbotheroption');
- $this->BlockOther = $wgLang->timeanddate( $this->mBlock->mExpiry );
- $this->BlockAnonOnly = $wgRequest->getBool( 'wpAnonOnly', true );
- $this->BlockCreateAccount = $wgRequest->getBool( 'wpCreateAccount', true );
- $this->BlockEnableAutoblock = $wgRequest->getBool( 'wpEnableAutoblock', true );
- $this->BlockEmail = $wgRequest->getBool( 'wpEmailBan', false );
- $this->BlockEmail = $this->mBlock->mBlockEmail;
- $this->BlockWatchUser = $wgRequest->getBool( 'wpWatchUser', false );
- # Re-check user's rights to hide names, very serious, defaults to 0
- $this->BlockHideName = ( $this->mBlock->mHideName && $wgUser->isAllowed( 'hideuser' ) ) ? 1 : 0;
- return true;
- }
- }
-