X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialChangeEmail.php;h=361b7b1b649b2a87b3b41252b895b551002c2b43;hb=7d78861743a4c03519046d42f06d44cf437e7804;hp=22df04e82887e7be23fd0c905c928ac4ca5b5997;hpb=6d79d853b17dc45b8b4796e89d930f95f75e7216;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialChangeEmail.php b/includes/specials/SpecialChangeEmail.php index 22df04e828..361b7b1b64 100644 --- a/includes/specials/SpecialChangeEmail.php +++ b/includes/specials/SpecialChangeEmail.php @@ -92,7 +92,8 @@ class SpecialChangeEmail extends FormSpecialPage { 'NewEmail' => array( 'type' => 'email', 'label-message' => 'changeemail-newemail', - 'autofocus' => true + 'autofocus' => true, + 'help-message' => 'changeemail-newemail-help', ), ); @@ -115,6 +116,11 @@ class SpecialChangeEmail extends FormSpecialPage { $form->setTableId( 'mw-changeemail-table' ); $form->setSubmitTextMsg( 'changeemail-submit' ); $form->addHiddenFields( $this->getRequest()->getValues( 'returnto', 'returntoquery' ) ); + + $form->addHeaderText( $this->msg( 'changeemail-header' )->parseAsBlock() ); + if ( $this->getConfig()->get( 'RequirePasswordforEmailChange' ) ) { + $form->addHeaderText( $this->msg( 'changeemail-passwordrequired' )->parseAsBlock() ); + } } public function onSubmit( array $data ) {