From: Aryeh Gregor Date: Fri, 21 Aug 2009 21:40:05 +0000 (+0000) Subject: Don't prefill new account name, and autofocus X-Git-Tag: 1.31.0-rc.0~40147 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=7df79a81348b1bb267cd94ba5371e9ad76deadb6;p=lhc%2Fweb%2Fwiklou.git Don't prefill new account name, and autofocus It's kind of silly to prefill the name of the account to be created from cookies . . . presumably that account already exists. :) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5bfdd88270..f70a36f4e4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index 5a4d3f9c8b..41e134610c 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -157,12 +157,13 @@ class UsercreateTemplate extends QuickTemplate { data['name'], 'text', array( + echo Html::input( 'wpName', null, 'text', array( 'class' => 'loginText', 'id' => 'wpName2', 'tabindex' => '1', 'size' => '20', - 'required' + 'required', + 'autofocus' ) ); ?>