From 7869747ff4dd08b1281b0386d8c0017969b5c787 Mon Sep 17 00:00:00 2001 From: withoutaname Date: Mon, 21 Jul 2014 15:10:25 -0700 Subject: [PATCH] Remove RequestContext from edit.php and fixDoubleRedirects.php Change-Id: I9388e6b3fec3c8ea92099aeaf010dd067f62a20f --- maintenance/edit.php | 3 --- maintenance/fixDoubleRedirects.php | 1 - 2 files changed, 4 deletions(-) diff --git a/maintenance/edit.php b/maintenance/edit.php index 6bdb15d90b..75ec12bfdd 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -54,8 +54,6 @@ class EditCLI extends Maintenance { $noRC = $this->hasOption( 'no-rc' ); $wgUser = User::newFromName( $userName ); - $context = RequestContext::getMain(); - $context->setUser( $wgUser ); if ( !$wgUser ) { $this->error( "Invalid username", true ); } @@ -67,7 +65,6 @@ class EditCLI extends Maintenance { if ( !$title ) { $this->error( "Invalid title", true ); } - $context->setTitle( $title ); if ( $this->hasOption( 'nocreate' ) && !$title->exists() ) { $this->error( "Page does not exist", true ); diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php index a678a92832..9568284708 100644 --- a/maintenance/fixDoubleRedirects.php +++ b/maintenance/fixDoubleRedirects.php @@ -96,7 +96,6 @@ class FixDoubleRedirects extends Maintenance { foreach ( $res as $row ) { $titleA = Title::makeTitle( $row->pa_namespace, $row->pa_title ); $titleB = Title::makeTitle( $row->pb_namespace, $row->pb_title ); - RequestContext::getMain()->setTitle( $titleA ); $processedTitles .= "* [[$titleA]]\n"; -- 2.20.1