dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d471ca
)
Fix another regression from r57558, bug 21369 - Lowercase logins causes MediaWiki...
author
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 1 Nov 2009 13:58:37 +0000
(13:58 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Sun, 1 Nov 2009 13:58:37 +0000
(13:58 +0000)
includes/User.php
patch
|
blob
|
history
diff --git
a/includes/User.php
b/includes/User.php
index
d64e3e8
..
4f05bcb
100644
(file)
--- a/
includes/User.php
+++ b/
includes/User.php
@@
-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