r23057 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23056‎ | r23057 | r23058 >
Date:07:37, 18 June 2007
Author:midom
Status:old
Tags:
Comment:
Bug #10228 : don't show 1, when we can show 0. Literally. Yay.
Modified paths:
  • /trunk/phase3/includes/SpecialStatistics.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialStatistics.php
@@ -24,6 +24,10 @@
2525
2626 $admins = $dbr->selectField( 'user_groups', 'COUNT(*)', array( 'ug_group' => 'sysop' ), $fname );
2727 $numJobs = $dbr->estimateRowCount('job');
 28+ /* Zero rows still do single row read for row that doesn't exist, but people are annoyed by that */
 29+ if ($numJobs == 1) {
 30+ $numJobs = 0;
 31+ }
2832
2933 if ($action == 'raw') {
3034 $wgOut->disable();

Follow-up revisions

RevisionCommit summaryAuthorDate
r23087Merged revisions 23050-23086 via svnmerge from...david03:14, 19 June 2007

Status & tagging log