From: Sam Reed Date: Sun, 13 Mar 2011 18:23:33 +0000 (+0000) Subject: Join user table to recentchanges on user id, rather than user_text X-Git-Tag: 1.31.0-rc.0~31454 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=9509de315b022c809913ed0c6f4ddad282cad069;p=lhc%2Fweb%2Fwiklou.git Join user table to recentchanges on user id, rather than user_text Add some documentation --- diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index f016ab9292..7d6d2c0cfb 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -32,6 +32,16 @@ */ class ActiveUsersPager extends UsersPager { + /** + * @var FormOptions + */ + protected $opts; + + /** + * @var Array + */ + protected $groups; + function __construct( $group = null ) { global $wgRequest, $wgActiveUserDays; $this->RCMaxAge = $wgActiveUserDays; @@ -96,7 +106,7 @@ class ActiveUsersPager extends UsersPager { 'USE INDEX' => array( 'recentchanges' => 'rc_user_text' ) ), 'join_conds' => array( - 'user' => array( 'INNER JOIN', 'rc_user_text=user_name' ), + 'user' => array( 'INNER JOIN', 'rc_user=user_id' ), 'ipblocks' => array( 'LEFT JOIN', 'user_id=ipb_user AND ipb_auto=0 AND ipb_deleted=1' ), ), 'conds' => $conds