From: Niklas Laxström Date: Thu, 22 Nov 2007 15:43:02 +0000 (+0000) Subject: * The number of watching users in watchlists was always reported as 1 X-Git-Tag: 1.31.0-rc.0~50751 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=f17deb62093a3d2532486d6c95990b921f82a882;p=lhc%2Fweb%2Fwiklou.git * The number of watching users in watchlists was always reported as 1 --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 274b548bdb..6f2a1df839 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -191,6 +191,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Support {{PLURAL}} for import log * Make sure that the correct log entries are shown on Special:Userrights even for users with special characters in their names +* The number of watching users in watchlists was always reported as 1 == Parser changes in 1.12 == diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index eba242c228..102a4b940f 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -294,7 +294,7 @@ function wfSpecialWatchlist( $par ) { } if ($wgRCShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' )) { - $sql3 = "SELECT COUNT(*) AS n FROM $watchlist WHERE wl_title='" .$dbr->strencode($obj->page_title). "' AND wl_namespace='{$obj->page_namespace}'" ; + $sql3 = "SELECT COUNT(*) AS n FROM $watchlist WHERE wl_title='" .$dbr->strencode($obj->rc_title). "' AND wl_namespace='{$obj->rc_namespace}'" ; $res3 = $dbr->query( $sql3, $fname ); $x = $dbr->fetchObject( $res3 ); $rc->numberofWatchingusers = $x->n;