];
}
- protected function buildQueryInfo( $offset, $limit, $descending ) {
+ protected function buildQueryInfo( $offset, $limit, $order ) {
$fname = __METHOD__ . ' (' . $this->getSqlComment() . ')';
$sortColumns = array_merge( [ $this->mIndexField ], $this->mExtraSortFields );
- if ( $descending ) {
+ if ( $order === self::QUERY_ASCENDING ) {
$dir = 'ASC';
$orderBy = $sortColumns;
$operator = $this->mIncludeOffset ? '>=' : '>';
$userName = $row->user_name;
$ulinks = Linker::userLink( $row->user_id, $userName );
- $ulinks .= Linker::userToolLinks( $row->user_id, $userName );
+ $ulinks .= Linker::userToolLinks(
+ $row->user_id,
+ $userName,
+ // Should the contributions link be red if the user has no edits (using default)
+ false,
+ // Customisation flags (using default 0)
+ 0,
+ // User edit count (using default)
+ null,
+ // do not wrap the message in parentheses (CSS will provide these)
+ false
+ );
$lang = $this->getLanguage();
$list = [];
- $user = User::newFromId( $row->user_id );
$ugms = self::getGroupMemberships( intval( $row->user_id ), $this->userGroupCache );
foreach ( $ugms as $ugm ) {