From ce073e4bf9af4605b91f889cf9a4556cd7865ab7 Mon Sep 17 00:00:00 2001 From: Alexander Gesinn Date: Sat, 22 Aug 2020 10:54:07 +0200 Subject: [PATCH] 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 --- includes/SpecialContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialContact.php b/includes/SpecialContact.php index adcdde6..b1a4e20 100644 --- a/includes/SpecialContact.php +++ b/includes/SpecialContact.php @@ -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();