From: Rob Church Date: Tue, 4 Apr 2006 13:20:45 +0000 (+0000) Subject: (bug 5447) Convert first letter of username to uppercase before searching in Special... X-Git-Tag: 1.6.0~26 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=e0be90c7facefbf6faf6ecde47b0a26b163da7ae;p=lhc%2Fweb%2Fwiklou.git (bug 5447) Convert first letter of username to uppercase before searching in Special:Listusers --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ad164ff81a..721ec350ba 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -428,6 +428,7 @@ Special Pages: * (bug 2544) Illogical error reporting order in Special:Userlogin * (bug 5409) Hide "show/hide patrolled edits" in Special:Recentchanges if patrolling is disabled +* (bug 5447) Convert first letter of username to uppercase before searching in Special:Listusers Misc.: * PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect diff --git a/includes/SpecialListusers.php b/includes/SpecialListusers.php index b2a35dd037..03afd3ce81 100644 --- a/includes/SpecialListusers.php +++ b/includes/SpecialListusers.php @@ -206,7 +206,7 @@ class ListUsersPage extends QueryPage { * $par string (optional) A group to list users from */ function wfSpecialListusers( $par = null ) { - global $wgRequest; + global $wgRequest, $wgContLang; list( $limit, $offset ) = wfCheckLimits(); @@ -218,7 +218,7 @@ function wfSpecialListusers( $par = null ) { */ $groupTarget = isset($par) ? $par : $wgRequest->getVal( 'group' ); $slu->requestedGroup = $groupTarget; - $slu->requestedUser = $wgRequest->getVal('username'); + $slu->requestedUser = $wgContLang->ucfirst( $wgRequest->getVal('username') ); return $slu->doQuery( $offset, $limit ); }