diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-04-01 06:11:44 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-04-01 06:11:44 +0200 |
commit | 14f74d141ab5580688bfd46d2f74c026e43ed967 (patch) | |
tree | 081b7cbfc4d246ecc42831978d080331267cf57c /includes/specials/SpecialActiveusers.php | |
parent | 4a953b6bfda28604979feb9cfbb58974d13b84bb (diff) |
Update to MediaWiki 1.24.2
Diffstat (limited to 'includes/specials/SpecialActiveusers.php')
-rw-r--r-- | includes/specials/SpecialActiveusers.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index ce436525..f983b452 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -115,10 +115,16 @@ class ActiveUsersPager extends UsersPager { ) . ')'; } + if ( $dbr->implicitGroupby() ) { + $options = array( 'GROUP BY' => array( 'qcc_title' ) ); + } else { + $options = array( 'GROUP BY' => array( 'user_name', 'user_id', 'qcc_title' ) ); + } + return array( 'tables' => array( 'querycachetwo', 'user', 'recentchanges' ), 'fields' => array( 'user_name', 'user_id', 'recentedits' => 'COUNT(*)', 'qcc_title' ), - 'options' => array( 'GROUP BY' => array( 'qcc_title' ) ), + 'options' => $options, 'conds' => $conds ); } |