Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | } |
47 | 47 | |
48 | 48 | $showBlockLog = $wgRequest->getBool( 'submit-showBlockLog' ); |
49 | | - $oldusername = Title::newFromText( $wgRequest->getText( 'oldusername' ), NS_USER ); |
| 49 | + $oldusername = Title::makeTitle( NS_USER, $wgRequest->getText( 'oldusername' ) ); |
50 | 50 | // Force uppercase of newusername otherweise wikis with wgCapitalLinks=false can create lc usernames |
51 | 51 | $newusername = Title::newFromText( $wgContLang->ucfirst( $wgRequest->getText( 'newusername' ) ), NS_USER ); |
52 | 52 | $oun = is_object( $oldusername ) ? $oldusername->getText() : ''; |
— | — | @@ -162,7 +162,6 @@ |
163 | 163 | $wgOut->addWikiText( "<div class=\"errorbox\">" . wfMsg( 'renameuser-error-request' ) . "</div>" ); |
164 | 164 | return; |
165 | 165 | } elseif( !is_object( $oldusername ) ) { |
166 | | - // FIXME: This is bogus. Invalid titles need to be rename-able! (bug 12654) |
167 | 166 | $wgOut->addWikiText( |
168 | 167 | "<div class=\"errorbox\">" |
169 | 168 | . wfMsg( 'renameusererrorinvalid', $wgRequest->getText( 'oldusername' ) ) |