r41794 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41793‎ | r41794 | r41795 >
Date:07:03, 7 October 2008
Author:raymond
Status:old
Tags:
Comment:
Move htmlspecialchar to the message creation itself to allow   in 'validationstatistics-nbr'
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php
@@ -50,15 +50,15 @@
5151
5252 $percRev = intval( $row->total ) == 0
5353 ? '-' // devision by zero
54 - : $wgLang->formatnum( wfMsg( 'validationstatistics-nbr',
55 - sprintf( '%4.2f', 100 * intval( $row->reviewed ) / intval( $row->total ) ) ) );
 54+ : $wgLang->formatnum( wfMsgExt( 'validationstatistics-nbr', array( 'escapenoentities' ),
 55+ sprintf( '%4.2f', 100 * intval( $row->reviewed ) / intval( $row->total ) ) ) );
5656 $percLatest = intval( $row->total ) == 0
5757 ? '-' // devision by zero
58 - : $wgLang->formatnum( wfMsg( 'validationstatistics-nbr',
 58+ : $wgLang->formatnum( wfMsgExt( 'validationstatistics-nbr', array( 'escapenoentities' ),
5959 sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->total ) ) ) );
6060 $percSynced = intval( $row->reviewed ) == 0
6161 ? '-' // devision by zero
62 - : $wgLang->formatnum( wfMsg( 'validationstatistics-nbr',
 62+ : $wgLang->formatnum( wfMsgExt( 'validationstatistics-nbr', array( 'escapenoentities' ),
6363 sprintf( '%4.2f', 100 * intval( $row->synced ) / intval( $row->reviewed ) ) ) );
6464 $outdated = intval( $row->reviewed ) - intval( $row->synced );
6565 $outdated = $wgLang->formatnum( max( 0, $outdated ) ); // lag between queries
@@ -78,7 +78,7 @@
7979 htmlspecialchars( $wgLang->formatnum( $row->synced ) . $wgContLang->getDirMark() ) . " <i>($percLatest)</i>
8080 </td>
8181 <td>" .
82 - htmlspecialchars( $percSynced ) .
 82+ $percSynced .
8383 "</td>
8484 <td>" .
8585

Status & tagging log