Revision: 46195
Author: siebrand
Date: 2009-01-25 12:24:02 +0000 (Sun, 25 Jan 2009)
Log Message:
-----------
Replace hard coded trailing space in 'commentspammer-log-msg' by
'word-separator'
Modified Paths:
--------------
trunk/extensions/CommentSpammer/CommentSpammer.i18n.php
trunk/extensions/CommentSpammer/CommentSpammer.php
Modified: trunk/extensions/CommentSpammer/CommentSpammer.i18n.php
===================================================================
--- trunk/extensions/CommentSpammer/CommentSpammer.i18n.php 2009-01-25
11:56:49 UTC (rev 46194)
+++ trunk/extensions/CommentSpammer/CommentSpammer.i18n.php 2009-01-25
12:24:02 UTC (rev 46195)
@@ -14,7 +14,7 @@
'commentspammer-save-blocked' => 'Your IP address is a suspected
comment spammer, so the page has not been saved.
[[Special:UserLogin|Log in or create an account]] to avoid this.',
'commentspammer-desc' => 'Rejects edits from suspected comment
spammers on a DNS blacklist',
- 'commentspammer-log-msg' => 'edit from
[[Special:Contributions/$1|$1]] to [[:$2]]. ',
+ 'commentspammer-log-msg' => 'edit from
[[Special:Contributions/$1|$1]] to [[:$2]].',
'commentspammer-log-msg-info' => 'Last spammed $1
{{PLURAL:$1|day|days}} ago, threat level is $2, and offence code is $3.
[http://www.projecthoneypot.org/search_ip.php?ip=$4 View details], or
[[Special:Blockip/$4|block]].',
'cspammerlogpagetext' => 'Record of edits that have been
allowed or denied based on whether the source was a known comment spammer.',
Modified: trunk/extensions/CommentSpammer/CommentSpammer.php
===================================================================
--- trunk/extensions/CommentSpammer/CommentSpammer.php 2009-01-25 11:56:49 UTC
(rev 46194)
+++ trunk/extensions/CommentSpammer/CommentSpammer.php 2009-01-25 12:24:02 UTC
(rev 46195)
@@ -142,7 +142,8 @@
if( count( $params ) >= 4 ) {
list( $ip_addr, $last_spam, $threat_level,
$offence_code) = $params;
$comment = wfMsgExt( 'commentspammer-log-msg' ,
array( 'parseinline' ), $ip_addr, $page )
- . wfMsgExt(
'commentspammer-log-msg-info', array( 'parseinline' ), $last_spam,
$threat_level, $offence_code, $ip_addr );
+ . wfMsg( 'word_separator' )
+ . wfMsgExt( 'commentspammer-log-msg-info',
array( 'parseinline' ), $last_spam, $threat_level, $offence_code, $ip_addr );
} elseif( count( $params ) == 1 ) {
$ip_addr = $params[0];
$comment = wfMsgExt( 'commentspammer-log-msg',
array( 'parseinline' ), $ip_addr, $page );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs