From 5110025fd04e244aaad8907883f21846e03a1951 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 4 Jan 2007 19:12:52 +0000 Subject: [PATCH] Fix #8330: Recentchanges counter is confusing --- RELEASE-NOTES | 1 + includes/RecentChange.php | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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 . ')'; } } } -- 2.20.1