From b1ddb0cef127d75e2045d4cc3aba4d612b2f7676 Mon Sep 17 00:00:00 2001 From: Cicalese Date: Tue, 17 Oct 2017 17:58:28 +0000 Subject: [PATCH] Fix login button label to accept RawMessage. The label is already a Message at this point. For Messages that are not RawMessages, the call to wfMessage() does not do any harm. However, for RawMessages, it causes the label to appear in <>. Removing the call to wfMessage() does not harm regular Messages and fixes the problem for RawMessages. Change-Id: I943628e2a1fbf6fff579dd52c1058ca2ef125d34 --- includes/specialpage/AuthManagerSpecialPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specialpage/AuthManagerSpecialPage.php b/includes/specialpage/AuthManagerSpecialPage.php index 0cdc55f060..95729f3c56 100644 --- a/includes/specialpage/AuthManagerSpecialPage.php +++ b/includes/specialpage/AuthManagerSpecialPage.php @@ -679,7 +679,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage { ]; if ( $type === 'submit' && isset( $singleFieldInfo['label'] ) ) { - $descriptor['default'] = wfMessage( $singleFieldInfo['label'] )->plain(); + $descriptor['default'] = $singleFieldInfo['label']->plain(); } elseif ( $type !== 'submit' ) { $descriptor += array_filter( [ // help-message is omitted as it is usually not really useful for a web interface -- 2.20.1