From: Robin Pepermans Date: Fri, 22 Jul 2011 22:50:03 +0000 (+0000) Subject: in "marked version X of [[Page]] patrolled" on IRC, the "version" displays according... X-Git-Tag: 1.31.0-rc.0~28676 X-Git-Url: http://git.cyclocoop.org/data/modifier.php?a=commitdiff_plain;h=4b37e2acee2140a50d8e3b968814d1c30b312338;p=lhc%2Fweb%2Fwiklou.git in "marked version X of [[Page]] patrolled" on IRC, the "version" displays according to the user language. If this is the correct fix (didn't test), it can perhaps be merged with 1.18 and 1.17wmf1. --- diff --git a/includes/PatrolLog.php b/includes/PatrolLog.php index 0df48a8576..480337a113 100644 --- a/includes/PatrolLog.php +++ b/includes/PatrolLog.php @@ -67,7 +67,8 @@ class PatrolLog { return wfMsgHtml( 'patrol-log-line', $diff, $link, $auto ); } else { $text = $title->getPrefixedText(); - return wfMsgForContent( 'patrol-log-line', wfMsgHtml('patrol-log-diff',$cur), "[[$text]]", '' ); + $diff = htmlspecialchars( wfMsgForContent( 'patrol-log-diff', $cur ) ); + return wfMsgForContent( 'patrol-log-line', $diff, "[[$text]]", '' ); } }