From: Katie Filbert Date: Thu, 22 Oct 2009 19:38:39 +0000 (+0000) Subject: * (bug 19319) Add activeusers-intro message at top of SpecialActiveUsers page X-Git-Tag: 1.31.0-rc.0~39167 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=cd32695cfd610b56f6293945a0c699ecaaca0017;p=lhc%2Fweb%2Fwiklou.git * (bug 19319) Add activeusers-intro message at top of SpecialActiveUsers page --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 900520169c..f074969b67 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -589,6 +589,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 20275) Fixed LIKE queries on SQLite backend * (bug 21234) Moving subpages of titles containing \\ now works properly * (bug 21006) maintenance/updateArticleCount.php now works again on PostgreSQL +* (bug 19319) Add activeusers-intro message at top of SpecialActiveUsers page == API changes in 1.16 == diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index 7212468900..1429a3c2c8 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -136,15 +136,20 @@ class SpecialActiveUsers extends SpecialPage { * @param $par Mixed: parameter passed to the page or null */ public function execute( $par ) { - global $wgOut; + global $wgOut, $wgLang, $wgRCMaxAge; $this->setHeaders(); - + $up = new ActiveUsersPager(); # getBody() first to check, if empty $usersbody = $up->getBody(); - $s = $up->getPageHeader(); + + $s = Html::rawElement( 'div', array( 'class' => 'mw-activeusers-intro' ), + wfMsg( 'activeusers-intro', $wgLang->formatNum( ceil( $wgRCMaxAge / 86400 ) ) ) + ); + + $s .= $up->getPageHeader(); if( $usersbody ) { $s .= $up->getNavigationBar(); $s .= Html::rawElement( 'ul', array(), $usersbody ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 16997c13d7..b9295fce16 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2533,7 +2533,8 @@ Supported protocols: $1', # Special:ActiveUsers 'activeusers' => 'Active users list', -'activeusers-summary' => '', # do not translate or duplicate this message to other languages +#'activeusers-summary' => '', # do not translate or duplicate this message to other languages +'activeusers-intro' => 'This is a list of users who had some kind of activity within the last $1 {{PLURAL:$1|day|days}}.', 'activeusers-count' => '$1 {{PLURAL:$1|edit|edits}} in the last {{PLURAL:$3|day|$3 days}}', 'activeusers-from' => 'Display users starting at:', 'activeusers-noresult' => 'No users found.', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 84c098e2c3..5bf115da24 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -1644,6 +1644,7 @@ $wgMessageStructure = array( 'activeusers-from', 'activeusers-submit', 'activeusers-noresult', + 'activeusers-intro', ), 'newuserlog' => array( 'newuserlogpage',