summaryrefslogtreecommitdiff
path: root/maintenance/importTextFile.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/importTextFile.php')
-rw-r--r--maintenance/importTextFile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/maintenance/importTextFile.php b/maintenance/importTextFile.php
index adb50635..c04989c0 100644
--- a/maintenance/importTextFile.php
+++ b/maintenance/importTextFile.php
@@ -56,7 +56,8 @@ if ( count( $args ) < 1 || isset( $options['help'] ) ) {
echo( "\nPerforming edit..." );
$page = WikiPage::factory( $title );
- $page->doEdit( $text, $comment, $flags, false, $user );
+ $content = ContentHandler::makeContent( $text, $title );
+ $page->doEditContent( $content, $comment, $flags, false, $user );
echo( "done.\n" );
} else {