Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -331,8 +331,17 @@ |
332 | 332 | 'name' => $group, |
333 | 333 | 'rights' => array_keys( $permissions, true ), |
334 | 334 | ); |
| 335 | + |
335 | 336 | if ( $numberInGroup ) { |
336 | | - $arr['number'] = SiteStats::numberInGroup( $group ); |
| 337 | + global $wgAutopromote; |
| 338 | + |
| 339 | + if ($group == 'user') { |
| 340 | + $arr['number'] = SiteStats::users(); |
| 341 | + |
| 342 | + // '*' and autopromote groups have no size |
| 343 | + } elseif (!($group == '*' || in_array($group, array_keys($wgAutopromote)))) { |
| 344 | + $arr['number'] = SiteStats::numberInGroup( $group ); |
| 345 | + } |
337 | 346 | } |
338 | 347 | |
339 | 348 | $groupArr = array( |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -400,6 +400,8 @@ |
401 | 401 | * (bug 24166) API error when using rvprop=tags |
402 | 402 | * Introduced "asynchronous download" mode for upload-by-url. Requires |
403 | 403 | $wgAllowAsyncCopyUploads to be true. |
| 404 | +* sinumberingroup correctly gives size of 'user' group, and omits size of |
| 405 | + implicit groups rather than showing 0. |
404 | 406 | |
405 | 407 | === Languages updated in 1.17 === |
406 | 408 | |