} elseif ( array_key_exists( 'type', $definition ) ) {
$class = HTMLForm::$typeMappings[$definition['type']];
}
- if ( $class !== 'HTMLInfoField' ) {
+ if ( $class !== HTMLInfoField::class ) {
$definition['tabindex'] = $i;
$i++;
}
];
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