From: Alexandre Emsenhuber Date: Sun, 15 Jan 2012 12:30:14 +0000 (+0000) Subject: * Use WikiPage instead of Article to call doEdit() X-Git-Tag: 1.31.0-rc.0~25257 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=9f179bbe6f8b81975ef7e624f352ae938244bc89;p=lhc%2Fweb%2Fwiklou.git * Use WikiPage instead of Article to call doEdit() * Pass the User object to WikiPage::doEdit() --- diff --git a/maintenance/importTextFile.php b/maintenance/importTextFile.php index b78ae03917..ec9ff001ad 100644 --- a/maintenance/importTextFile.php +++ b/maintenance/importTextFile.php @@ -57,8 +57,8 @@ if ( count( $args ) < 1 || isset( $options['help'] ) ) { $flags = 0 | ( isset( $options['norc'] ) ? EDIT_SUPPRESS_RC : 0 ); echo( "\nPerforming edit..." ); - $article = new Article( $title ); - $article->doEdit( $text, $comment, $flags ); + $page = WikiPage::factory( $title ); + $page->doEdit( $text, $comment, $flags, false, $user ); echo( "done.\n" ); } else {