From: Alexandre Emsenhuber Date: Thu, 29 Dec 2011 18:51:23 +0000 (+0000) Subject: Use WikiPage instead of Article to call doEdit() X-Git-Tag: 1.31.0-rc.0~25686 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=7dd441ad8d5ca772095bc316b948a24d8f4e328d;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call doEdit() --- diff --git a/maintenance/edit.php b/maintenance/edit.php index fb462a40fc..88573714a3 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -58,14 +58,14 @@ class EditCLI extends Maintenance { $this->error( "Invalid title", true ); } - $article = new Article( $wgTitle ); + $page = WikiPage::factory( $wgTitle ); # Read the text $text = $this->getStdin( Maintenance::STDIN_ALL ); # Do the edit $this->output( "Saving... " ); - $status = $article->doEdit( $text, $summary, + $status = $page->doEdit( $text, $summary, ( $minor ? EDIT_MINOR : 0 ) | ( $bot ? EDIT_FORCE_BOT : 0 ) | ( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) |