From 7df7acb6e0220e7425e6f056fcee55db3b475153 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 24 Jul 2007 10:32:37 +0000 Subject: [PATCH] Use $badLines instead of $badList for PLURAL: counting. count( $badList ) is always 1 as it is a string. --- SpamBlacklist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SpamBlacklist.php b/SpamBlacklist.php index b94e1f93..6828a101 100644 --- a/SpamBlacklist.php +++ b/SpamBlacklist.php @@ -72,9 +72,9 @@ function wfSpamBlacklistValidate( $editPage, $text, $section, &$hookError ) { wfDebug( "Spam blacklist validator: [[$thisPageName]] not a local blacklist\n" ); return true; } - + $lines = explode( "\n", $text ); - + $badLines = SpamRegexBatch::getBadLines( $lines ); if( $badLines ) { wfDebug( "Spam blacklist validator: [[$thisPageName]] given invalid input lines: " . @@ -86,7 +86,7 @@ function wfSpamBlacklistValidate( $editPage, $text, $section, &$hookError ) { "\n"; $hookError = "
" . - wfMsgExt( 'spam-invalid-lines', array( 'parsemag' ), count( $badList ) ) . + wfMsgExt( 'spam-invalid-lines', array( 'parsemag' ), count( $badLines ) ) . $badList . "
\n" . "
\n";