From: Purodha B Blissenbach Date: Sun, 11 Oct 2009 00:45:27 +0000 (+0000) Subject: Add link to Special:ActiveUsers to Special:Statistics X-Git-Tag: 1.31.0-rc.0~39305 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=d979dfbd9dbf446560be356cd8bf16e600b7e72e;p=lhc%2Fweb%2Fwiklou.git Add link to Special:ActiveUsers to Special:Statistics --- 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',