From: Antoine Musso Date: Thu, 4 Jan 2007 19:12:52 +0000 (+0000) Subject: Fix #8330: Recentchanges counter is confusing X-Git-Tag: 1.31.0-rc.0~54666 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=5110025fd04e244aaad8907883f21846e03a1951;p=lhc%2Fweb%2Fwiklou.git Fix #8330: Recentchanges counter is confusing --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 10420e7e72..b67146903a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -460,6 +460,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Advise users when updates for a query page have been disabled using $wgDisableQueryPageUpdate * (bug 8413) better comments for $wgNamespaceRobotPolicies setting. +* (bug 8330) recentchanges diff counter is now showing 'bytes'. == Languages updated == diff --git a/includes/RecentChange.php b/includes/RecentChange.php index 081c71a358..01a95f2918 100644 --- a/includes/RecentChange.php +++ b/includes/RecentChange.php @@ -581,15 +581,16 @@ class RecentChange } $szdiff = $new - $old; + $formatedSize = wfMsg( 'nbytes', $wgLang->formatNum($szdiff) ); if( $szdiff < $wgRCChangedSizeThreshold ) { - return '(' . $wgLang->formatNum( $szdiff ) . ')'; + return '(' . $formatedSize . ')'; } elseif( $szdiff === 0 ) { - return '(' . $wgLang->formatNum( $szdiff ) . ')'; + return '(' . $formatedSize . ')'; } elseif( $szdiff > 0 ) { - return '(+' . $wgLang->formatNum( $szdiff ) . ')'; + return '(+' . $formatedSize . ')'; } else { - return '(' . $wgLang->formatNum( $szdiff ) . ')'; + return '(' . $formatedSize . ')'; } } }