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:
daniel 2013-07-31 12:52:38 +02:00
parent a7be17faa0
commit dfb25d3f73
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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;
/**