diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /maintenance/edit.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'maintenance/edit.php')
-rw-r--r-- | maintenance/edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/edit.php b/maintenance/edit.php index 59df5e88..93fc3e79 100644 --- a/maintenance/edit.php +++ b/maintenance/edit.php @@ -68,10 +68,11 @@ class EditCLI extends Maintenance { # Read the text $text = $this->getStdin( Maintenance::STDIN_ALL ); + $content = ContentHandler::makeContent( $text, $wgTitle ); # Do the edit $this->output( "Saving... " ); - $status = $page->doEdit( $text, $summary, + $status = $page->doEditContent( $content, $summary, ( $minor ? EDIT_MINOR : 0 ) | ( $bot ? EDIT_FORCE_BOT : 0 ) | ( $autoSummary ? EDIT_AUTOSUMMARY : 0 ) | @@ -92,4 +93,3 @@ class EditCLI extends Maintenance { $maintClass = "EditCLI"; require_once( RUN_MAINTENANCE_IF_MAIN ); - |