Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6370730e6c |
1 changed files with 2 additions and 15 deletions
|
@ -121,21 +121,7 @@ class ContributionScores extends IncludableSpecialPage {
|
||||||
|
|
||||||
if ( $wgContribScoreIgnoreBlockedUsers ) {
|
if ( $wgContribScoreIgnoreBlockedUsers ) {
|
||||||
$sqlWhere[] = "{$revUser} NOT IN " .
|
$sqlWhere[] = "{$revUser} NOT IN " .
|
||||||
$dbr->buildSelectSubquery( [
|
$dbr->buildSelectSubquery( 'ipblocks', 'ipb_user', 'ipb_user <> 0', __METHOD__ );
|
||||||
'block',
|
|
||||||
'block_target'
|
|
||||||
],
|
|
||||||
'bt_user',
|
|
||||||
'bt_user <> 0',
|
|
||||||
__METHOD__,
|
|
||||||
[],
|
|
||||||
[
|
|
||||||
'block_target' => [ 'JOIN', [
|
|
||||||
'bl_target=bt_id'
|
|
||||||
] ]
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $wgContribScoreIgnoreBots ) {
|
if ( $wgContribScoreIgnoreBots ) {
|
||||||
|
@ -201,6 +187,7 @@ class ContributionScores extends IncludableSpecialPage {
|
||||||
__METHOD__,
|
__METHOD__,
|
||||||
[
|
[
|
||||||
'ORDER BY' => 'wiki_rank DESC',
|
'ORDER BY' => 'wiki_rank DESC',
|
||||||
|
'GROUP BY' => 'user_name',
|
||||||
'LIMIT' => $limit,
|
'LIMIT' => $limit,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Reference in a new issue