From f17deb62093a3d2532486d6c95990b921f82a882 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 22 Nov 2007 15:43:02 +0000 Subject: [PATCH] * The number of watching users in watchlists was always reported as 1 --- RELEASE-NOTES | 1 + includes/SpecialWatchlist.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.20.1