r57633 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57632‎ | r57633 | r57634 >
Date:00:45, 11 October 2009
Author:purodha
Status:ok
Tags:
Comment:
Add link to Special:ActiveUsers to Special:Statistics
Modified paths:
  • /trunk/phase3/includes/specials/SpecialStatistics.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialStatistics.php
@@ -161,14 +161,22 @@
162162 array( 'class' => 'mw-statistics-jobqueue' ) );
163163 }
164164 private function getUserStats() {
165 - global $wgLang, $wgRCMaxAge;
 165+ global $wgLang, $wgUser, $wgRCMaxAge;
 166+ $sk = $wgUser->getSkin();
166167 return Xml::openElement( 'tr' ) .
167168 Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-users', array( 'parseinline' ) ) ) .
168169 Xml::closeElement( 'tr' ) .
169170 $this->formatRow( wfMsgExt( 'statistics-users', array( 'parseinline' ) ),
170171 $wgLang->formatNum( $this->users ),
171172 array( 'class' => 'mw-statistics-users' ) ) .
172 - $this->formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ),
 173+ $this->formatRow( wfMsgExt( 'statistics-users-active', array( 'parseinline' ) ) . ' ' .
 174+ $sk->link(
 175+ SpecialPage::getTitleFor( 'Activeusers' ),
 176+ wfMsgHtml( 'listgrouprights-members' ),
 177+ array(),
 178+ array(),
 179+ 'known'
 180+ ),
173181 $wgLang->formatNum( $this->activeUsers ),
174182 array( 'class' => 'mw-statistics-users-active' ),
175183 'statistics-users-active-desc',

Follow-up revisions

RevisionCommit summaryAuthorDate
r57635Merging in changes from r57633 & r57629tomasz06:43, 11 October 2009

Status & tagging log