* (bug 19319) Add activeusers-intro message at top of SpecialActiveUsers page
authorKatie Filbert <aude@users.mediawiki.org>
Thu, 22 Oct 2009 19:38:39 +0000 (19:38 +0000)
committerKatie Filbert <aude@users.mediawiki.org>
Thu, 22 Oct 2009 19:38:39 +0000 (19:38 +0000)
RELEASE-NOTES
includes/specials/SpecialActiveusers.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 9005201..f074969 100644 (file)
@@ -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 ==
 
index 7212468..1429a3c 100644 (file)
@@ -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 );
index 16997c1..b9295fc 100644 (file)
@@ -2533,7 +2533,8 @@ Supported protocols: <tt>$1</tt>',
 
 # 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.',
index 84c098e..5bf115d 100644 (file)
@@ -1644,6 +1644,7 @@ $wgMessageStructure = array(
                'activeusers-from',
                'activeusers-submit',
                'activeusers-noresult',
+               'activeusers-intro',
        ),
        'newuserlog' => array(
                'newuserlogpage',