r108970 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108969‎ | r108970 | r108971 >
Date:12:30, 15 January 2012
Author:ialex
Status:ok
Tags:core 
Comment:
* Use WikiPage instead of Article to call doEdit()
* Pass the User object to WikiPage::doEdit()
Modified paths:
  • /trunk/phase3/maintenance/importTextFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/importTextFile.php
@@ -57,8 +57,8 @@
5858 $flags = 0 | ( isset( $options['norc'] ) ? EDIT_SUPPRESS_RC : 0 );
5959
6060 echo( "\nPerforming edit..." );
61 - $article = new Article( $title );
62 - $article->doEdit( $text, $comment, $flags );
 61+ $page = WikiPage::factory( $title );
 62+ $page->doEdit( $text, $comment, $flags, false, $user );
6363 echo( "done.\n" );
6464
6565 } else {

Status & tagging log