Fix groupby issue in SpecialActiveusers
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Fri, 30 Oct 2009 16:19:39 +0000 (16:19 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Fri, 30 Oct 2009 16:19:39 +0000 (16:19 +0000)
RELEASE-NOTES
includes/specials/SpecialActiveusers.php

index c5126db..45e1e41 100644 (file)
@@ -610,6 +610,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * The error message shown in Special:ChangePassword now parses wiki markup
 * (bug 19859) Removed experimental HTMLDiff feature
 * Removed section edit links in edit conflict form
+* Allow SpecialActiveusers to work on non-MySQL databases
 
 == API changes in 1.16 ==
 
index 34e8cec..105be73 100644 (file)
@@ -65,7 +65,7 @@ class ActiveUsersPager extends UsersPager {
                                'MAX(ipb_user) AS blocked'
                        ),
                        'options' => array(
-                               'GROUP BY' => 'rc_user_text',
+                               'GROUP BY' => $dbr->implicitGroupby() ? 'rc_user_text' : 'rc_user_text, user_id',
                                'USE INDEX' => array( 'recentchanges' => 'rc_user_text' )
                        ),
                        'join_conds' => array(