From: Platonides Date: Sun, 25 Jul 2010 18:16:25 +0000 (+0000) Subject: Do not use a global $action to get the action. X-Git-Tag: 1.31.0-rc.0~35942 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=bcb171dbfabfe2bfb1ac0c3afc8c5165d3686b85;p=lhc%2Fweb%2Fwiklou.git Do not use a global $action to get the action. --- 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 {