From bcb171dbfabfe2bfb1ac0c3afc8c5165d3686b85 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sun, 25 Jul 2010 18:16:25 +0000 Subject: [PATCH] Do not use a global $action to get the action. --- includes/specials/SpecialMovepage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 51c84de838..8fa5ea81e6 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -26,7 +26,7 @@ * Constructor */ function wfSpecialMovepage( $par = null ) { - global $wgUser, $wgOut, $wgRequest, $action; + global $wgUser, $wgOut, $wgRequest; # Check for database lock if ( wfReadOnly() ) { @@ -61,7 +61,7 @@ function wfSpecialMovepage( $par = null ) { $form = new MovePageForm( $oldTitle, $newTitle ); - if ( 'submit' == $action && $wgRequest->wasPosted() + if ( 'submit' == $wgRequest->getVal( 'action' ) && $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) ) { $form->doSubmit(); } else { -- 2.20.1