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:
parent
0a93d05f83
commit
ce073e4bf9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue