Index: trunk/extensions/Renameuser/Renameuser.php |
— | — | @@ -67,6 +67,8 @@ |
68 | 68 | /** |
69 | 69 | * Show a log if the user has been renamed and point to the new username. |
70 | 70 | * Don't show the log if the $oldUserName exists as a user. |
| 71 | + * |
| 72 | + * @param $article Article |
71 | 73 | */ |
72 | 74 | function wfRenameUserShowLog( $article ) { |
73 | 75 | global $wgOut; |
Index: trunk/extensions/Renameuser/Renameuser_body.php |
— | — | @@ -46,18 +46,10 @@ |
47 | 47 | $nun = is_object( $newusername ) ? $newusername->getText() : ''; |
48 | 48 | $token = $wgUser->editToken(); |
49 | 49 | $reason = $wgRequest->getText( 'reason' ); |
50 | | - // If nothing given for these flags, assume they are checked |
51 | | - // unless this is a POST submission. |
52 | | - $move_checked = true; |
53 | | - $suppress_checked = false; |
54 | | - if ( $wgRequest->wasPosted() ) { |
55 | | - if ( !$wgRequest->getCheck( 'movepages' ) ) { |
56 | | - $move_checked = false; |
57 | | - } |
58 | | - if ( $wgRequest->getCheck( 'suppressredirect' ) ) { |
59 | | - $suppress_checked = true; |
60 | | - } |
61 | | - } |
| 50 | + |
| 51 | + $move_checked = $wgRequest->getCheck( 'movepages' ); |
| 52 | + $suppress_checked = $wgRequest->getCheck( 'suppressredirect' ); |
| 53 | + |
62 | 54 | $warnings = array(); |
63 | 55 | if ( $oun && $nun && !$wgRequest->getCheck( 'confirmaction' ) ) { |
64 | 56 | wfRunHooks( 'RenameUserWarning', array( $oun, $nun, &$warnings ) ); |