mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-15 03:13:58 +00:00
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:
parent
05de6d4997
commit
e42ba056f2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue