X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FCheckBlocksSecondaryAuthenticationProvider.php;h=10925b50f7261452939c41368218d97c64dfbaa5;hb=1b9ca741a7e1b9577e6f769813a0423b2a5707f9;hp=7488fbaaaea7add14debf090db02a9bde0f146aa;hpb=2b7fbceb23a4737de36cfc48d542a21dd6f53a7a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php b/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php index 7488fbaaae..10925b50f7 100644 --- a/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php +++ b/includes/auth/CheckBlocksSecondaryAuthenticationProvider.php @@ -77,8 +77,8 @@ class CheckBlocksSecondaryAuthenticationProvider extends AbstractSecondaryAuthen public function testUserForCreation( $user, $autocreate, array $options = [] ) { $block = $user->isBlockedFromCreateAccount(); if ( $block ) { - if ( $block->mReason ) { - $reason = $block->mReason; + if ( $block->getReason() ) { + $reason = $block->getReason(); } else { $msg = \Message::newFromKey( 'blockednoreason' ); if ( !\RequestContext::getMain()->getUser()->isSafeToLoad() ) {