// keep the ordering from getCoreFieldDescriptors() where there is no explicit weight
foreach ( $coreFieldDescriptors as $fieldName => $coreField ) {
- $requestField = isset( $formDescriptor[$fieldName] ) ?
- $formDescriptor[$fieldName] : [];
+ $requestField = $formDescriptor[$fieldName] ?? [];
// remove everything that is not in the fieldinfo, is not marked as a supplemental field
// to something in the fieldinfo, is not B/C for the pre-AuthManager templates,
// 'id' => 'mw-userlogin-help', // FIXME HTMLInfoField ignores this
'raw' => true,
'default' => Html::element( 'a', [
- 'href' => Skin::makeInternalOrExternalUrl( wfMessage( 'helplogin-url' )
+ 'href' => Skin::makeInternalOrExternalUrl( $this->msg( 'helplogin-url' )
->inContentLanguage()
->text() ),
], $this->msg( 'userlogin-helplink2' )->text() ),