Aude has uploaded a new change for review.
https://gerrit.wikimedia.org/r/143331
Change subject: Don't generate html when calling getParserOutput
......................................................................
Don't generate html when calling getParserOutput
all that is needed are the external links
Bug: 67361
Change-Id: I8c44c8c306f5f20cb5edd8314bf53e3483e314b7
---
M SpamBlacklistHooks.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SpamBlacklist
refs/changes/31/143331/1
diff --git a/SpamBlacklistHooks.php b/SpamBlacklistHooks.php
index 54f833c..57ffe3f 100644
--- a/SpamBlacklistHooks.php
+++ b/SpamBlacklistHooks.php
@@ -25,7 +25,7 @@
}
// get the link from the not-yet-saved page content.
- $pout = $content->getParserOutput( $title );
+ $pout = $content->getParserOutput( $title, null, null, false );
$links = array_keys( $pout->getExternalLinks() );
// HACK: treat the edit summary as a link
--
To view, visit https://gerrit.wikimedia.org/r/143331
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8c44c8c306f5f20cb5edd8314bf53e3483e314b7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SpamBlacklist
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits