Index: trunk/phase3/includes/SpecialWatchlist.php |
— | — | @@ -294,7 +294,7 @@ |
295 | 295 | } |
296 | 296 | |
297 | 297 | if ($wgRCShowWatchingUsers && $wgUser->getOption( 'shownumberswatching' )) { |
298 | | - $sql3 = "SELECT COUNT(*) AS n FROM $watchlist WHERE wl_title='" .$dbr->strencode($obj->page_title). "' AND wl_namespace='{$obj->page_namespace}'" ; |
| 298 | + $sql3 = "SELECT COUNT(*) AS n FROM $watchlist WHERE wl_title='" .$dbr->strencode($obj->rc_title). "' AND wl_namespace='{$obj->rc_namespace}'" ; |
299 | 299 | $res3 = $dbr->query( $sql3, $fname ); |
300 | 300 | $x = $dbr->fetchObject( $res3 ); |
301 | 301 | $rc->numberofWatchingusers = $x->n; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -191,6 +191,7 @@ |
192 | 192 | * Support {{PLURAL}} for import log |
193 | 193 | * Make sure that the correct log entries are shown on Special:Userrights even |
194 | 194 | for users with special characters in their names |
| 195 | +* The number of watching users in watchlists was always reported as 1 |
195 | 196 | |
196 | 197 | == Parser changes in 1.12 == |
197 | 198 | |