From d979dfbd9dbf446560be356cd8bf16e600b7e72e Mon Sep 17 00:00:00 2001 From: Purodha B Blissenbach Date: Sun, 11 Oct 2009 00:45:27 +0000 Subject: [PATCH] Add link to Special:ActiveUsers to Special:Statistics --- includes/specials/SpecialStatistics.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index 6e88a09fd2..51e76f84f6 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -161,14 +161,22 @@ class SpecialStatistics extends SpecialPage { array( 'class' => 'mw-statistics-jobqueue' ) ); } private function getUserStats() { - global $wgLang, $wgRCMaxAge; + global $wgLang, $wgUser, $wgRCMaxAge; + $sk = $wgUser->getSkin(); return Xml::openElement( 'tr' ) . Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-users', array( 'parseinline' ) ) ) . Xml::closeElement( 'tr' ) . $this->formatRow( wfMsgExt( 'statistics-users', array( 'parseinline' ) ), $wgLang->formatNum( $this->users ), array( 'class' => 'mw-statistics-users' ) ) . - $this->formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ), + $this->formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ) . ' ' . + $sk->link( + SpecialPage::getTitleFor( 'Activeusers' ), + wfMsgHtml( 'listgrouprights-members' ), + array(), + array(), + 'known' + ), $wgLang->formatNum( $this->activeUsers ), array( 'class' => 'mw-statistics-users-active' ), 'statistics-users-active-desc', -- 2.20.1