'SpamBlacklist', ); function wfSpamBlacklistLoader( &$title, $text, $section ) { require_once( "SpamBlacklist_body.php" ); static $spamObj = false; global $wgSpamBlacklistFiles, $wgSpamBlacklistSettings, $wgPreSpamFilterCallback; if ( $spamObj === false ) { $spamObj = new SpamBlacklist( $wgSpamBlacklistSettings ); if ( $wgSpamBlacklistFiles ) { $spamObj->files = $wgSpamBlacklistFiles; $spamObj->previousFilter = $wgPreSpamFilterCallback; } } return $spamObj->filter( $title, $text, $section ); } } # End invocation guard ?>