From: Alexandre Emsenhuber Date: Tue, 14 Dec 2010 12:25:34 +0000 (+0000) Subject: Changed $wgArticle to local variable, not needed X-Git-Tag: 1.31.0-rc.0~33316 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=0617614722711d1b03f5ae01aa3bd6fefffc7ccf;p=lhc%2Fweb%2Fwiklou.git Changed $wgArticle to local variable, not needed --- 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 ) |