Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -54,17 +54,10 @@ |
55 | 55 | // If nothing given for these flags, assume they are checked |
56 | 56 | // unless this is a POST submission. |
57 | 57 | $move_checked = true; |
58 | | - $reserve_checked = false; |
59 | 58 | if( $wgRequest->wasPosted() ) { |
60 | 59 | if( !$wgRequest->getCheck( 'movepages' ) ) { |
61 | 60 | $move_checked = false; |
62 | 61 | } |
63 | | - if( !$wgRequest->getCheck( 'reservename' ) ) { |
64 | | - $reserve_checked = false; |
65 | | - } |
66 | | - else { |
67 | | - $reserve_checked = true; |
68 | | - } |
69 | 62 | } |
70 | 63 | $warnings = array(); |
71 | 64 | if( $oun && $nun && !$wgRequest->getCheck( 'confirmaction' ) ) { |
— | — | @@ -114,16 +107,6 @@ |
115 | 108 | </tr>" |
116 | 109 | ); |
117 | 110 | } |
118 | | - $wgOut->addHTML( " |
119 | | - <tr> |
120 | | - <td> |
121 | | - </td> |
122 | | - <td class='mw-input'>" . |
123 | | - Xml::checkLabel( wfMsg( 'renameuserreserve' ), 'reservename', 'reservename', |
124 | | - $reserve_checked, array( 'tabindex' => '5' ) ) . |
125 | | - "</td> |
126 | | - </tr>" |
127 | | - ); |
128 | 111 | if( $warnings ) { |
129 | 112 | $warningsHtml = array(); |
130 | 113 | foreach( $warnings as $warning ) |
— | — | @@ -292,13 +275,6 @@ |
293 | 276 | $log->addEntry( 'renameuser', $oldusername, wfMsgExt( 'renameuser-log', array( 'parsemag', 'content' ), |
294 | 277 | $wgContLang->formatNum( $contribs ), $reason ), $newusername->getText() ); |
295 | 278 | |
296 | | - // Reserve the old name with a random password |
297 | | - if( $wgRequest->getCheck( 'reservename' ) ) { |
298 | | - $p = User::randomPassword(); |
299 | | - $user = User::createNew( $olduser->getName() ); |
300 | | - $user->setNewpassword( $p ); |
301 | | - } |
302 | | - |
303 | 279 | // Move any user pages |
304 | 280 | if( $wgRequest->getCheck( 'movepages' ) && $wgUser->isAllowed( 'move' ) ) { |
305 | 281 | $dbr = wfGetDB( DB_SLAVE ); |