$error might be an array of key + values, but wfMessage() treats that as
an array of alternative message keys instead so the values are lost.
Message::newFromSpecifier(), on the other hand, does exactly what we
want.
Change-Id: I25765869f6888ac793c2af9caaa9bbdf2224d51a
'Capture' => $displayPassword ? '1' : null,
];
if ( !Hooks::run( 'SpecialPasswordResetOnSubmit', [ &$users, $data, &$error ] ) ) {
- return StatusValue::newFatal( wfMessage( $error ) );
+ return StatusValue::newFatal( Message::newFromSpecifier( $error ) );
}
if ( !$users ) {