Return message key instead of processed message in validation callback.

HTMLForm::trySubmit() requires message key instead of the message
to work properly.

Change-Id: I51e544bbb776ca2877bccc7576e6b484f54638a1
This commit is contained in:
Alexander Gesinn 2020-08-22 10:54:07 +02:00 committed by Ammarpad
parent 0a93d05f83
commit ce073e4bf9
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class SpecialContact extends UnlistedSpecialPage {
if ( $this->useCaptcha() &&
!$captcha->passCaptchaFromRequest( $request, $user )
) {
return $this->msg( 'contactpage-captcha-error' )->plain();
return 'contactpage-captcha-error';
}
$senderIP = $request->getIP();