From 1777ebaa373402a2b40551b2af7f283b4f345378 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Thu, 27 May 2010 18:04:08 +0000 Subject: [PATCH] edit.php: got rid of $wgTitle --- maintenance/edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance/edit.php b/maintenance/edit.php index 500af5a381..7e4b2f7f75 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -36,7 +36,7 @@ class EditCLI extends Maintenance { } public function execute() { - global $wgUser, $wgTitle, $wgArticle; + global $wgUser, $wgArticle; $userName = $this->getOption( 'u', 'Maintenance script' ); $summary = $this->getOption( 's', '' ); @@ -53,12 +53,12 @@ class EditCLI extends Maintenance { $wgUser->addToDatabase(); } - $wgTitle = Title::newFromText( $this->getArg() ); - if ( !$wgTitle ) { + $title = Title::newFromText( $this->getArg() ); + if ( !$title ) { $this->error( "Invalid title", true ); } - $wgArticle = new Article( $wgTitle ); + $wgArticle = new Article( $title ); # Read the text $text = $this->getStdin( Maintenance::STDIN_ALL ); -- 2.20.1