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
];
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