From 32d05ca049082e6e348ef19797e855444b515976 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 28 Jun 2005 00:35:01 +0000 Subject: [PATCH] * Fixed a bug where the watchlist count without talk pages would be off by a factor of two. --- RELEASE-NOTES | 2 ++ includes/SpecialWatchlist.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 56738e237c..07b7f15e12 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -390,6 +390,8 @@ Various bugfixes, small features, and a few experimental things: User::isValidUserName() and User::isValidPassword(), extensions can now do these checks without rewriting code. * Fix $wgSiteNotice when MediaWiki:Sitenotice is set to default '-' +* Fixed a bug where the watchlist count without talk pages would be off by a + factor of two. === Caveats === diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index d3247c7591..3793d1c342 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -207,7 +207,7 @@ function wfSpecialWatchlist( $par ) { $header .= wfMsg( 'wlheader-showupdated' ) . "\n"; } - $header .= wfMsg( 'watchdetails', $wgLang->formatNum( $nitems ), + $header .= wfMsg( 'watchdetails', $wgLang->formatNum( $nitems / 2 ), $wgLang->formatNum( $npages ), $y, $specialTitle->getFullUrl( 'edit=yes' ) ); $wgOut->addWikiText( $header ); -- 2.20.1