Use getter to get user block in SpecialContact
Change-Id: I643a62a3d468f36d93fb9a53907bf51cea6ce1f4
This commit is contained in:
parent
9536788c31
commit
b04dee5193
|
@ -94,7 +94,7 @@ class SpecialContact extends UnlistedSpecialPage {
|
|||
|
||||
// Blocked users cannot use the contact form if they're disabled from sending email.
|
||||
if ( $user->isBlockedFromEmailuser() ) {
|
||||
throw new UserBlockedError( $this->getUser()->mBlock );
|
||||
throw new UserBlockedError( $this->getUser()->getBlock() );
|
||||
}
|
||||
|
||||
$pageTitle = '';
|
||||
|
|
Loading…
Reference in New Issue