r46225 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46224‎ | r46225 | r46226 >
Date:20:28, 25 January 2009
Author:siebrand
Status:ok
Tags:
Comment:
Replace "\n" in 'spam-invalid-lines' by hard coded "<br />".
Modified paths:
  • /trunk/extensions/SpamBlacklist/SpamBlacklist.i18n.php (modified) (history)
  • /trunk/extensions/SpamBlacklist/SpamBlacklist_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SpamBlacklist/SpamBlacklist_body.php
@@ -365,7 +365,7 @@
366366 "</tt>\n";
367367 $hookError =
368368 "<div class='errorbox'>" .
369 - wfMsgExt( 'spam-invalid-lines', array( 'parsemag' ), count( $badLines ) ) .
 369+ wfMsgExt( 'spam-invalid-lines', array( 'parsemag' ), count( $badLines ) ) . "<br />" .
370370 $badList .
371371 "</div>\n" .
372372 "<br clear='all' />\n";
Index: trunk/extensions/SpamBlacklist/SpamBlacklist.i18n.php
@@ -27,7 +27,7 @@
2828 # * Every non-blank line is a regex fragment which will only match hosts inside URLs
2929
3030 #</pre> <!-- leave this line exactly as it is -->',
31 - 'spam-invalid-lines' => "The following spam blacklist {{PLURAL:$1|line is an|lines are}} invalid regular {{PLURAL:$1|expression|expressions}} and {{PLURAL:$1|needs|need}} to be corrected before saving the page:\n",
 31+ 'spam-invalid-lines' => "The following spam blacklist {{PLURAL:$1|line is an|lines are}} invalid regular {{PLURAL:$1|expression|expressions}} and {{PLURAL:$1|needs|need}} to be corrected before saving the page:",
3232 'spam-blacklist-desc' => 'Regex-based anti-spam tool: [[MediaWiki:Spam-blacklist]] and [[MediaWiki:Spam-whitelist]]',
3333 );
3434

Status & tagging log