* Fixing bug where the lowest contributors were shown - not the highest (oops)
* Sorting sub-queries DESC
This commit is contained in:
parent
d20ca5c22d
commit
47769a7f1c
2 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ $wgExtensionCredits['specialpage'][] = array(
|
||||||
'url'=>'http://www.mediawiki.org/wiki/Extension:Contribution_Scores',
|
'url'=>'http://www.mediawiki.org/wiki/Extension:Contribution_Scores',
|
||||||
'author'=>'Tim Laqua',
|
'author'=>'Tim Laqua',
|
||||||
'description'=>'Polls wiki database for highest user contribution volume',
|
'description'=>'Polls wiki database for highest user contribution volume',
|
||||||
'version'=>'1.7'
|
'version'=>'1.7.1'
|
||||||
);
|
);
|
||||||
|
|
||||||
define( 'CONTRIBUTIONSCORES_PATH', dirname( __FILE__ ) );
|
define( 'CONTRIBUTIONSCORES_PATH', dirname( __FILE__ ) );
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
FROM {$revTable}
|
FROM {$revTable}
|
||||||
{$sqlWhere}
|
{$sqlWhere}
|
||||||
GROUP BY rev_user
|
GROUP BY rev_user
|
||||||
ORDER BY page_count
|
ORDER BY page_count DESC
|
||||||
LIMIT {$limit}";
|
LIMIT {$limit}";
|
||||||
|
|
||||||
$sqlMostRevs = "SELECT rev_user,
|
$sqlMostRevs = "SELECT rev_user,
|
||||||
|
@ -73,8 +73,8 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
COUNT(rev_id) AS rev_count
|
COUNT(rev_id) AS rev_count
|
||||||
FROM {$revTable}
|
FROM {$revTable}
|
||||||
{$sqlWhere}
|
{$sqlWhere}
|
||||||
GROUP BY rev_user
|
GROUP BY rev_user
|
||||||
ORDER BY rev_count
|
ORDER BY rev_count DESC
|
||||||
LIMIT {$limit}";
|
LIMIT {$limit}";
|
||||||
|
|
||||||
$sql = "SELECT user_id, " .
|
$sql = "SELECT user_id, " .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue