* (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 ==
* @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 );
# 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.',
'activeusers-from',
'activeusers-submit',
'activeusers-noresult',
+ 'activeusers-intro',
),
'newuserlog' => array(
'newuserlogpage',