Index: trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php |
— | — | @@ -240,7 +240,11 @@ |
241 | 241 | |
242 | 242 | // Check SpamBlacklist, if installed |
243 | 243 | if ( function_exists( 'wfSpamBlacklistObject' ) ) { |
244 | | - $spam = wfSpamBlacklistObject(); // FIXME: this function exists in the 1.18wmf1 version of SpamBlacklist, but not in the trunk version |
| 244 | + $spam = wfSpamBlacklistObject(); |
| 245 | + } elseif ( class_exists( 'BaseBlacklist' ) ) { |
| 246 | + $spam = BaseBlacklist::getInstance( 'spam' ); |
| 247 | + } |
| 248 | + if ( $spam ) { |
245 | 249 | $ret = $spam->filter( $title, $value, '' ); |
246 | 250 | if ( $ret !== false ) { |
247 | 251 | return true; |