Merge "Use WikiPage::prepareContentForEdit in SpamBlacklistHooks::filterMergedContent"

This commit is contained in:
jenkins-bot 2013-12-26 18:15:04 +00:00 committed by Gerrit Code Review
commit fc94146189

View file

@ -25,7 +25,8 @@ class SpamBlacklistHooks {
}
// get the link from the not-yet-saved page content.
$pout = $content->getParserOutput( $title );
$editInfo = $context->getWikiPage()->prepareContentForEdit( $content );
$pout = $editInfo->output;
$links = array_keys( $pout->getExternalLinks() );
// HACK: treat the edit summary as a link