Don't generate html when calling getParserOutput

all that is needed are the external links

Bug: 67361
Change-Id: I8c44c8c306f5f20cb5edd8314bf53e3483e314b7
This commit is contained in:
aude 2014-07-01 17:20:38 +02:00
parent 05de6d4997
commit e42ba056f2

View file

@ -25,7 +25,8 @@ class SpamBlacklistHooks {
}
// get the link from the not-yet-saved page content.
$pout = $content->getParserOutput( $title );
// no need to generate html to get external links
$pout = $content->getParserOutput( $title, null, null, false );
$links = array_keys( $pout->getExternalLinks() );
// HACK: treat the edit summary as a link