mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-27 16:40:04 +00:00
Use $badLines instead of $badList for PLURAL: counting.
count( $badList ) is always 1 as it is a string.
This commit is contained in:
parent
bde084c272
commit
7df7acb6e0
|
@ -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 ) {
|
|||
"</tt>\n";
|
||||
$hookError =
|
||||
"<div class='errorbox'>" .
|
||||
wfMsgExt( 'spam-invalid-lines', array( 'parsemag' ), count( $badList ) ) .
|
||||
wfMsgExt( 'spam-invalid-lines', array( 'parsemag' ), count( $badLines ) ) .
|
||||
$badList .
|
||||
"</div>\n" .
|
||||
"<br clear='all' />\n";
|
||||
|
|
Loading…
Reference in a new issue