Don't prefill new account name, and autofocus
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 21 Aug 2009 21:40:05 +0000 (21:40 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 21 Aug 2009 21:40:05 +0000 (21:40 +0000)
It's kind of silly to prefill the name of the account to be created from
cookies . . . presumably that account already exists.  :)

RELEASE-NOTES
includes/templates/Userlogin.php

index 5bfdd88..f70a36f 100644 (file)
@@ -419,6 +419,8 @@ this. Was used when mwEmbed was going to be an extension.
   are now normalized to ordinary spaces in titles; if your wiki has existing
   titles with such characters, run cleanupTitles.php and/or cleanupImages.php
 * (bug 20296) Fixed an PHP warning in Language::getMagic() in PHP 5.3
+* When creating accounts, don't prefill name from current username (which
+  presumably is already taken)
 
 == API changes in 1.16 ==
 
index 5a4d3f9..41e1346 100644 (file)
@@ -157,12 +157,13 @@ class UsercreateTemplate extends QuickTemplate {
                        <td class="mw-label"><label for='wpName2'><?php $this->msg('yourname') ?></label></td>
                        <td class="mw-input">
                                <?php
-                       echo Html::input( 'wpName', $this->data['name'], 'text', array(
+                       echo Html::input( 'wpName', null, 'text', array(
                                'class' => 'loginText',
                                'id' => 'wpName2',
                                'tabindex' => '1',
                                'size' => '20',
-                               'required'
+                               'required',
+                               'autofocus'
                        ) ); ?>
                        </td>
                </tr>