Fix another regression from r57558, bug 21369 - Lowercase logins causes MediaWiki...
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 1 Nov 2009 13:58:37 +0000 (13:58 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 1 Nov 2009 13:58:37 +0000 (13:58 +0000)
includes/User.php

index d64e3e8..4f05bcb 100644 (file)
@@ -693,8 +693,9 @@ class User {
         *                - 'creatable'  Valid for batch processes, login and account creation
         */
        static function getCanonicalName( $name, $validate = 'valid' ) {
-               # Maybe force usernames to capital
-               $name = Title::capitalize( $name, NS_USER );
+               # Force usernames to capital
+               global $wgContLang;
+               $name = $wgContLang->ucfirst( $name );
 
                # Reject names containing '#'; these will be cleaned up
                # with title normalisation, but then it's too late to