From: Tim Starling Date: Sat, 24 Jul 2004 10:56:32 +0000 (+0000) Subject: $_REQUEST -> $wgRequest X-Git-Tag: 1.5.0alpha1~2604 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=f32bf278486bec5bfdc8922dc9437c4e85a0fde4;p=lhc%2Fweb%2Fwiklou.git $_REQUEST -> $wgRequest --- diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index a00c8ca2c8..56daac5e1c 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -103,7 +103,7 @@ class MovePageForm { { global $wgOut, $wgUser, $wgLang; global $wgDeferredUpdateList, $wgMessageCache; - global $wgUseSquid; + global $wgUseSquid, $wgRequest; $fname = "MovePageForm::doSubmit"; $ot = Title::newFromText( $this->oldTitle ); @@ -123,7 +123,7 @@ class MovePageForm { $ons = $ot->getNamespace(); $nns = $nt->getNamespace(); - if ( ( 1 == $_REQUEST['wpMovetalk'] ) && + if ( ( 1 == $wgRequest->getVal('wpMovetalk') ) && ( ! Namespace::isTalk( $ons ) ) && ( ! Namespace::isTalk( $nns ) ) ) { @@ -156,21 +156,23 @@ class MovePageForm { function showSuccess() { - global $wgOut, $wgUser; + global $wgOut, $wgUser, $wgRequest; $wgOut->setPagetitle( wfMsg( "movepage" ) ); $wgOut->setSubtitle( wfMsg( "pagemovedsub" ) ); - - $text = wfMsg( "pagemovedtext", $_REQUEST['oldtitle'], $_REQUEST['newtitle'] ); + $oldtitle = $wgRequest->getVal('oldtitle'); + $newtitle = $wgRequest->getVal('newtitle'); + $talkmoved = $wgRequest->getVal('talkmoved'); + + $text = wfMsg( "pagemovedtext", $oldtitle, $newtitle ); $wgOut->addWikiText( $text ); - $talkmoved = $_REQUEST['talkmoved']; if ( 1 == $talkmoved ) { $wgOut->addHTML( "\n

" . wfMsg( "talkpagemoved" ) . "

\n" ); } elseif( 'articleexists' == $talkmoved ) { $wgOut->addHTML( "\n

" . wfMsg( "talkexists" ) . "

\n" ); } else { - $ot = Title::newFromURL( $_REQUEST['oldtitle'] ); + $ot = Title::newFromURL( $oldtitle ); if ( ! Namespace::isTalk( $ot->getNamespace() ) ) { $wgOut->addHTML( "\n

" . wfMsg( "talkpagenotmoved", wfMsg( $talkmoved ) ) . "

\n" ); }