From: Max Semenik Date: Wed, 11 Nov 2009 16:29:44 +0000 (+0000) Subject: Fix Special:Activeusers for SQLite X-Git-Tag: 1.31.0-rc.0~38851 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=f318972807c2b87e16656fd9804c12359d016ee5;p=lhc%2Fweb%2Fwiklou.git Fix Special:Activeusers for SQLite --- diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index 105be7369a..0870fc3285 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -48,6 +48,8 @@ class ActiveUsersPager extends UsersPager { } function getQueryInfo() { + global $wgDBtype; + $dbr = wfGetDB( DB_SLAVE ); $conds = array( 'rc_user > 0' ); // Users - no anons $conds[] = 'ipb_deleted IS NULL'; // don't show hidden names @@ -65,7 +67,7 @@ class ActiveUsersPager extends UsersPager { 'MAX(ipb_user) AS blocked' ), 'options' => array( - 'GROUP BY' => $dbr->implicitGroupby() ? 'rc_user_text' : 'rc_user_text, user_id', + 'GROUP BY' => ( $dbr->implicitGroupby() || $wgDBtype == 'sqlite' ) ? 'rc_user_text' : 'rc_user_text, user_id', 'USE INDEX' => array( 'recentchanges' => 'rc_user_text' ) ), 'join_conds' => array(