* Fixed a bug where the watchlist count without talk pages would be off by a
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 28 Jun 2005 00:35:01 +0000 (00:35 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 28 Jun 2005 00:35:01 +0000 (00:35 +0000)
  factor of two.

RELEASE-NOTES
includes/SpecialWatchlist.php

index 56738e2..07b7f15 100644 (file)
@@ -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 ===
 
index d3247c7..3793d1c 100644 (file)
@@ -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 );