diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-08-12 09:28:15 +0200 |
commit | 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 (patch) | |
tree | 577a29fb579188d16003a209ce2a2e9c5b0aa2bd /extensions/SpamBlacklist/SpamBlacklist.php | |
parent | cacc939b34e315b85e2d72997811eb6677996cc1 (diff) |
Update to MediaWiki 1.21.1
Diffstat (limited to 'extensions/SpamBlacklist/SpamBlacklist.php')
-rw-r--r-- | extensions/SpamBlacklist/SpamBlacklist.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/extensions/SpamBlacklist/SpamBlacklist.php b/extensions/SpamBlacklist/SpamBlacklist.php new file mode 100644 index 00000000..f3e27f3c --- /dev/null +++ b/extensions/SpamBlacklist/SpamBlacklist.php @@ -0,0 +1,47 @@ +<?php + +# Loader for spam blacklist feature +# Include this from LocalSettings.php + +if ( !defined( 'MEDIAWIKI' ) ) { + exit; +} + +$wgExtensionCredits['antispam'][] = array( + 'path' => __FILE__, + 'name' => 'SpamBlacklist', + 'author' => array( 'Tim Starling', 'John Du Hart' ), + 'url' => 'https://www.mediawiki.org/wiki/Extension:SpamBlacklist', + 'descriptionmsg' => 'spam-blacklist-desc', +); + +$dir = __DIR__ . '/'; +$wgExtensionMessagesFiles['SpamBlackList'] = $dir . 'SpamBlacklist.i18n.php'; + +/** + * Array of settings for blacklist classes + */ +$wgBlacklistSettings = array(); + +/** + * @deprecated + */ +$wgSpamBlacklistFiles =& $wgBlacklistSettings['spam']['files']; + +/** + * @deprecated + */ +$wgSpamBlacklistSettings =& $wgBlacklistSettings['spam']; + +$wgHooks['EditFilterMerged'][] = 'SpamBlacklistHooks::filterMerged'; +$wgHooks['APIEditBeforeSave'][] = 'SpamBlacklistHooks::filterAPIEditBeforeSave'; +$wgHooks['EditFilter'][] = 'SpamBlacklistHooks::validate'; +$wgHooks['ArticleSaveComplete'][] = 'SpamBlacklistHooks::articleSave'; +$wgHooks['UserCanSendEmail'][] = 'SpamBlacklistHooks::userCanSendEmail'; +$wgHooks['AbortNewAccount'][] = 'SpamBlacklistHooks::abortNewAccount'; + +$wgAutoloadClasses['BaseBlacklist'] = $dir . 'BaseBlacklist.php'; +$wgAutoloadClasses['EmailBlacklist'] = $dir . 'EmailBlacklist.php'; +$wgAutoloadClasses['SpamBlacklistHooks'] = $dir . 'SpamBlacklistHooks.php'; +$wgAutoloadClasses['SpamBlacklist'] = $dir . 'SpamBlacklist_body.php'; +$wgAutoloadClasses['SpamRegexBatch'] = $dir . 'SpamRegexBatch.php'; |