Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | function execute() { |
39 | | - global $wgOut, $wgUser, $wgTitle, $wgRequest; |
| 39 | + global $wgOut, $wgUser, $wgTitle, $wgRequest, $wgContLang; |
40 | 40 | global $wgVersion, $wgMaxNameChars; |
41 | 41 | |
42 | 42 | $this->setHeaders(); |
— | — | @@ -55,8 +55,8 @@ |
56 | 56 | return; |
57 | 57 | } |
58 | 58 | |
59 | | - $oldusername = trim( $wgRequest->getText( 'oldusername' ) ); |
60 | | - $newusername = strtr( trim( $wgRequest->getText( 'newusername' ) ), '_', ' ' ); |
| 59 | + $oldusername = $wgContLang->ucfirst( strtr( trim( $wgRequest->getText( 'oldusername' ) ), '_', ' ' ) ); |
| 60 | + $newusername = $wgContLang->ucfirst( strtr( trim( $wgRequest->getText( 'newusername' ) ), '_', ' ' ) ); |
61 | 61 | |
62 | 62 | $action = $wgTitle->escapeLocalUrl(); |
63 | 63 | $renameuserold = wfMsgHtml( 'renameuserold' ); |