From 261fd55032dba1be9b8ce30c0408e56183c6944e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 15 Apr 2010 12:47:05 +0000 Subject: [PATCH] Remove jobqueue length from the user interface It causes more confusion than it is worth: * The figures are essentially random, so it does not help to detect problems * There shouldn't be any problems with default configuration anyway * The number is still accessible by other means --- includes/specials/SpecialStatistics.php | 6 ++---- languages/messages/MessagesEn.php | 1 - maintenance/language/messages.inc | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 60b98d3acb..6afba129c7 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -153,11 +153,9 @@ class SpecialStatistics extends SpecialPage { array( 'class' => 'mw-statistics-edits' ) ) . $this->formatRow( wfMsgExt( 'statistics-edits-average', array( 'parseinline' ) ), $wgLang->formatNum( sprintf( '%.2f', $this->total ? $this->edits / $this->total : 0 ) ), - array( 'class' => 'mw-statistics-edits-average' ) ) . - $this->formatRow( wfMsgExt( 'statistics-jobqueue', array( 'parseinline' ) ), - $wgLang->formatNum( $this->numJobs ), - array( 'class' => 'mw-statistics-jobqueue' ) ); + array( 'class' => 'mw-statistics-edits-average' ) ); } + private function getUserStats() { global $wgLang, $wgUser, $wgRCMaxAge; $sk = $wgUser->getSkin(); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 93dfeeaff7..9ba52fb1bd 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2321,7 +2321,6 @@ Remember to check for other links to the templates before deleting them.', 'statistics-edits-average' => 'Average edits per page', 'statistics-views-total' => 'Views total', 'statistics-views-peredit' => 'Views per edit', -'statistics-jobqueue' => '[http://www.mediawiki.org/wiki/Manual:Job_queue Job queue] length', 'statistics-users' => 'Registered [[Special:ListUsers|users]]', 'statistics-users-active' => 'Active users', 'statistics-users-active-desc' => 'Users who have performed an action in the last {{PLURAL:$1|day|$1 days}}', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index d3b1f8fca9..cdff4d5874 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1424,7 +1424,6 @@ $wgMessageStructure = array( 'statistics-edits-average', 'statistics-views-total', 'statistics-views-peredit', - 'statistics-jobqueue', 'statistics-users', 'statistics-users-active', 'statistics-users-active-desc', -- 2.20.1