Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * Constructor |
28 | 28 | */ |
29 | 29 | function wfSpecialMovepage( $par = null ) { |
30 | | - global $wgUser, $wgOut, $wgRequest, $action; |
| 30 | + global $wgUser, $wgOut, $wgRequest; |
31 | 31 | |
32 | 32 | # Check for database lock |
33 | 33 | if ( wfReadOnly() ) { |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | |
63 | 63 | $form = new MovePageForm( $oldTitle, $newTitle ); |
64 | 64 | |
65 | | - if ( 'submit' == $action && $wgRequest->wasPosted() |
| 65 | + if ( 'submit' == $wgRequest->getVal( 'action' ) && $wgRequest->wasPosted() |
66 | 66 | && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) ) { |
67 | 67 | $form->doSubmit(); |
68 | 68 | } else { |