Use getter to get user block in SpecialContact

Change-Id: I643a62a3d468f36d93fb9a53907bf51cea6ce1f4
This commit is contained in:
Thalia 2019-09-06 15:47:54 +01:00
parent 9536788c31
commit b04dee5193
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '';