Index: trunk/phase3/maintenance/importTextFile.php |
— | — | @@ -57,8 +57,8 @@ |
58 | 58 | $flags = 0 | ( isset( $options['norc'] ) ? EDIT_SUPPRESS_RC : 0 ); |
59 | 59 | |
60 | 60 | 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 ); |
63 | 63 | echo( "done.\n" ); |
64 | 64 | |
65 | 65 | } else { |