From 7df79a81348b1bb267cd94ba5371e9ad76deadb6 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 21 Aug 2009 21:40:05 +0000 Subject: [PATCH] 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. :) --- RELEASE-NOTES | 2 ++ includes/templates/Userlogin.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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' ) ); ?> -- 2.20.1