diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-03-12 18:12:23 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-03-12 18:12:23 +0100 |
commit | d417de70fcf39e0a7a15ba780b597914d16ca0f7 (patch) | |
tree | 06ef8c333473660350b995abc03e18f3f85359eb /extensions/SpamBlacklist/SpamBlacklist_body.php | |
parent | a4edbfa031eb4cd72678051f1510afde4f77951e (diff) |
Update to MediaWiki 1.22.4
Diffstat (limited to 'extensions/SpamBlacklist/SpamBlacklist_body.php')
-rw-r--r-- | extensions/SpamBlacklist/SpamBlacklist_body.php | 9 |
1 files changed, 2 insertions, 7 deletions
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(); } |