// add pre/post text
// header used by ConfirmEdit, CondfirmAccount, Persona, WikimediaIncubator, SemanticSignup
// should be above the error message but HTMLForm doesn't support that
- $form->addHeaderText( $fakeTemplate->html( 'header' ) );
+ $form->addHeaderText( $fakeTemplate->get( 'header' ) );
// FIXME the old form used this for error/warning messages which does not play well with
// HTMLForm (maybe it could with a subclass?); for now only display it for signups
}
// header used by MobileFrontend
- $form->addHeaderText( $fakeTemplate->html( 'formheader' ) );
+ $form->addHeaderText( $fakeTemplate->get( 'formheader' ) );
// blank signup footer for site customization
if ( $this->isSignup() && $this->showExtraInformation() ) {
!isset( $coreField['baseField'] )
|| !isset( $fieldInfo[$coreField['baseField']] )
) && !in_array( $fieldName, $specialFields, true )
- && $coreField['type'] !== 'submit'
+ && ( !isset( $coreField['type'] ) || $coreField['type'] !== 'submit' )
) {
$coreFieldDescriptors[$fieldName] = null;
continue;
], $this->msg( 'userlogin-helplink2' )->text() ),
'weight' => 200,
],
+ // button for ResetPasswordSecondaryAuthenticationProvider
+ 'skipReset' => [
+ 'weight' => 110,
+ 'flags' => [],
+ ],
];
}
$fieldDefinitions['username'] += [