Fixes to Special:ConfirmEmail form
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 12 Apr 2013 17:37:54 +0000 (19:37 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 12 Apr 2013 17:37:54 +0000 (19:37 +0200)
- Use Html class instead of Xml or raw strings where possible
- Add line breaks to the output for better readability

Change-Id: I93ddb3a5ecaa97c1b16c19b170e51b8cf9723d4d

includes/specials/SpecialConfirmemail.php

index 3287c63..c8190c8 100644 (file)
@@ -104,13 +104,13 @@ class EmailConfirmation extends UnlistedSpecialPage {
                        }
 
                        $out->addWikiMsg( 'confirmemail_text' );
-                       $form = Xml::openElement(
+                       $form = Html::openElement(
                                'form',
                                array( 'method' => 'post', 'action' => $this->getTitle()->getLocalURL() )
-                       );
-                       $form .= Html::hidden( 'token', $user->getEditToken() );
-                       $form .= Xml::submitButton( $this->msg( 'confirmemail_send' )->text() );
-                       $form .= Xml::closeElement( 'form' );
+                       ) . "\n";
+                       $form .= Html::hidden( 'token', $user->getEditToken() ) . "\n";
+                       $form .= Xml::submitButton( $this->msg( 'confirmemail_send' )->text() ) . "\n";
+                       $form .= Html::closeElement( 'form' ) . "\n";
                        $out->addHTML( $form );
                }
        }