* The number of watching users in watchlists was always reported as 1
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 22 Nov 2007 15:43:02 +0000 (15:43 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 22 Nov 2007 15:43:02 +0000 (15:43 +0000)
RELEASE-NOTES
includes/SpecialWatchlist.php

index 274b548..6f2a1df 100644 (file)
@@ -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 ==
 
index eba242c..102a4b9 100644 (file)
@@ -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;