Matthias Mullie has uploaded a new change for review. https://gerrit.wikimedia.org/r/106688
Change subject: Add more AbuseFilter vars ...................................................................... Add more AbuseFilter vars AbuseFilter::getEditVars adds a couple of new vars (e.g. added_lines), which are based on new_wikitext and old_wikitext. We already supply new_wikitext & old_wikitext with Flow data, so we might as well make these additional operators available to Flow filters. Change-Id: Ia54586f99e667d40b727fdde3096081ea5de6c85 --- M includes/SpamFilter/AbuseFilter.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/88/106688/1 diff --git a/includes/SpamFilter/AbuseFilter.php b/includes/SpamFilter/AbuseFilter.php index 0514b3f..4f0c466 100644 --- a/includes/SpamFilter/AbuseFilter.php +++ b/includes/SpamFilter/AbuseFilter.php @@ -69,7 +69,7 @@ * @return Status */ public function validate( AbstractRevision $newRevision, AbstractRevision $oldRevision = null, Title $title ) { - $vars = new \AbuseFilterVariableHolder; + $vars = \AbuseFilter::getEditVars( $title ); $vars->addHolders( \AbuseFilter::generateUserVars( $this->user ), \AbuseFilter::generateTitleVars( $title , 'ARTICLE' ) ); $vars->setVar( 'ACTION', $newRevision->getChangeType() ); -- To view, visit https://gerrit.wikimedia.org/r/106688 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia54586f99e667d40b727fdde3096081ea5de6c85 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits