summaryrefslogtreecommitdiff
path: root/maintenance/importSiteScripts.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/importSiteScripts.php')
-rw-r--r--maintenance/importSiteScripts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/maintenance/importSiteScripts.php b/maintenance/importSiteScripts.php
index e369cb15..fabc6dc6 100644
--- a/maintenance/importSiteScripts.php
+++ b/maintenance/importSiteScripts.php
@@ -62,7 +62,8 @@ class ImportSiteScripts extends Maintenance {
$text = Http::get( $url );
$wikiPage = WikiPage::factory( $title );
- $wikiPage->doEdit( $text, "Importing from $url", 0, false, $user );
+ $content = ContentHandler::makeContent( $text, $wikiPage->getTitle() );
+ $wikiPage->doEditContent( $content, "Importing from $url", 0, false, $user );
}
}