From d417de70fcf39e0a7a15ba780b597914d16ca0f7 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 12 Mar 2014 18:12:23 +0100 Subject: Update to MediaWiki 1.22.4 --- extensions/SpamBlacklist/SpamBlacklist_body.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'extensions/SpamBlacklist/SpamBlacklist_body.php') diff --git a/extensions/SpamBlacklist/SpamBlacklist_body.php b/extensions/SpamBlacklist/SpamBlacklist_body.php index 15fbc72f..bf5c9aab 100644 --- a/extensions/SpamBlacklist/SpamBlacklist_body.php +++ b/extensions/SpamBlacklist/SpamBlacklist_body.php @@ -34,13 +34,10 @@ class SpamBlacklist extends BaseBlacklist { * This is used to load the old links already on the page, so * the filter is only applied to links that got added. If not given, * the filter is applied to all $links. - * @param boolean $preventLog Whether to prevent logging of hits. Set to true when - * the action is testing the links rather than attempting to save them - * (e.g. the API spamblacklist action) * * @return Array Matched text(s) if the edit should not be allowed, false otherwise */ - function filter( array $links, Title $title = null, $preventLog = false ) { + function filter( array $links, Title $title = null ) { $fname = 'wfSpamBlacklistFilter'; wfProfileIn( $fname ); @@ -96,9 +93,7 @@ class SpamBlacklist extends BaseBlacklist { $ip = $wgRequest->getIP(); $imploded = implode( ' ', $matches[0] ); wfDebugLog( 'SpamBlacklistHit', "$ip caught submitting spam: $imploded\n" ); - if( !$preventLog ) { - $this->logFilterHit( $title, $imploded ); // Log it - } + $this->logFilterHit( $title, $imploded ); // Log it if( $retVal === false ){ $retVal = array(); } -- cgit v1.2.3-54-g00ecf