From 0617614722711d1b03f5ae01aa3bd6fefffc7ccf Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 14 Dec 2010 12:25:34 +0000 Subject: [PATCH] Changed $wgArticle to local variable, not needed --- maintenance/edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/edit.php b/maintenance/edit.php index 307570f045..30dfee19aa 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -36,7 +36,7 @@ class EditCLI extends Maintenance { } public function execute() { - global $wgUser, $wgArticle; + global $wgUser; $userName = $this->getOption( 'u', 'Maintenance script' ); $summary = $this->getOption( 's', '' ); @@ -58,14 +58,14 @@ class EditCLI extends Maintenance { $this->error( "Invalid title", true ); } - $wgArticle = new Article( $title ); + $article = new Article( $title ); # Read the text $text = $this->getStdin( Maintenance::STDIN_ALL ); # Do the edit $this->output( "Saving... " ); - $status = $wgArticle->doEdit( $text, $summary, + $status = $article->doEdit( $text, $summary, ( $minor ? EDIT_MINOR : 0 ) | ( $bot ? EDIT_FORCE_BOT : 0 ) | ( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) | -- 2.20.1