if ( $block ) {
$errorParams = [
$block->getTarget(),
- $block->mReason ?: wfMessage( 'blockednoreason' )->text(),
+ $block->getReason() ?: wfMessage( 'blockednoreason' )->text(),
$block->getByName()
];
// @codeCoverageIgnoreEnd
}
$this->setDefaultUserOptions( $user, $creator->isAnon() );
- \Hooks::run( 'LocalUserCreated', [ $user, false ] );
+ \Hooks::runWithoutAbort( 'LocalUserCreated', [ $user, false ] );
$user->saveSettings();
$state['userid'] = $user->getId();
$id = $req->getUniqueId();
// If a required request if from a Primary, mark it as "primary-required" instead
- if ( $isPrimary ) {
- if ( $req->required ) {
- $req->required = AuthenticationRequest::PRIMARY_REQUIRED;
- }
+ if ( $isPrimary && $req->required ) {
+ $req->required = AuthenticationRequest::PRIMARY_REQUIRED;
}
if (