Replace WikiPage::doEdit

Bug: T145745
Change-Id: I73247a0b115556b70d2aa9954f4d797c4a427935
This commit is contained in:
Reedy 2016-09-15 20:54:09 +01:00
parent 3690acd5ee
commit 2cf3db6517

View file

@ -50,7 +50,7 @@ function cleanupArticle( Revision $rev, $regexes, $match ) {
$comment = "Cleaning up links to $match";
}
$wikiPage = new WikiPage( $title );
$wikiPage->doEdit( $text, $comment );
$wikiPage->doEditContent( ContentHandler::makeContent( $text, $title ), $comment );
}
//------------------------------------------------------------------------------