mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-28 00:50:28 +00:00
Fix missing default blacklist.
The default blacklist was no longer being used, because the line $wgSpamBlacklistFiles =& $wgBlacklistSettings['spam']['files'] initialized $wgBlacklistSettings['spam']['files'] to null, and BaseBlacklist::__construct then overrode $this->files with null. Change-Id: I22448bfb87eef6dd86b61362f3eb6bb2198a10b6
This commit is contained in:
parent
a7be17faa0
commit
dfb25d3f73
|
@ -21,7 +21,11 @@ $wgExtensionMessagesFiles['SpamBlackList'] = $dir . 'SpamBlacklist.i18n.php';
|
|||
/**
|
||||
* Array of settings for blacklist classes
|
||||
*/
|
||||
$wgBlacklistSettings = array();
|
||||
$wgBlacklistSettings = array(
|
||||
'spam' => array(
|
||||
'files' => array( "http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1" )
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
|
|
|
@ -5,7 +5,6 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
|||
}
|
||||
|
||||
class SpamBlacklist extends BaseBlacklist {
|
||||
var $files = array( "http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1" );
|
||||
var $ignoreEditSummary = false;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue