Use email input type on SpecialChangeEmail
authorrobin <robinp.1273@gmail.com>
Mon, 17 Sep 2012 00:38:20 +0000 (02:38 +0200)
committerrobin <robinp.1273@gmail.com>
Mon, 17 Sep 2012 00:38:20 +0000 (02:38 +0200)
Change the input type for the e-mail input field to HTML5 'email' ('input' should have been 'text' anyway').

Change-Id: Idb1195e3f56b6b43d3b86d38747a4113d04053b5

includes/specials/SpecialChangeEmail.php

index fc72610..0996de3 100644 (file)
@@ -151,7 +151,7 @@ class SpecialChangeEmail extends UnlistedSpecialPage {
                $items = array(
                        array( 'wpName', 'username', 'text', $user->getName() ),
                        array( 'wpOldEmail', 'changeemail-oldemail', 'text', $oldEmailText ),
-                       array( 'wpNewEmail', 'changeemail-newemail', 'input', $this->mNewEmail ),
+                       array( 'wpNewEmail', 'changeemail-newemail', 'email', $this->mNewEmail ),
                );
                if ( $wgRequirePasswordforEmailChange ) {
                        $items[] = array( 'wpPassword', 'yourpassword', 'password', $this->mPassword );