From 47769a7f1c18982daf7ba6751b08e44bb2f806d2 Mon Sep 17 00:00:00 2001 From: Tim Laqua Date: Wed, 19 Dec 2007 17:23:43 +0000 Subject: [PATCH] * Fixing bug where the lowest contributors were shown - not the highest (oops) * Sorting sub-queries DESC --- ContributionScores.php | 2 +- ContributionScores_body.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ContributionScores.php b/ContributionScores.php index 6a1d53a..5e0dbe9 100644 --- a/ContributionScores.php +++ b/ContributionScores.php @@ -14,7 +14,7 @@ $wgExtensionCredits['specialpage'][] = array( 'url'=>'http://www.mediawiki.org/wiki/Extension:Contribution_Scores', 'author'=>'Tim Laqua', 'description'=>'Polls wiki database for highest user contribution volume', - 'version'=>'1.7' + 'version'=>'1.7.1' ); define( 'CONTRIBUTIONSCORES_PATH', dirname( __FILE__ ) ); diff --git a/ContributionScores_body.php b/ContributionScores_body.php index c2464c5..51ff779 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -65,7 +65,7 @@ class ContributionScores extends IncludableSpecialPage FROM {$revTable} {$sqlWhere} GROUP BY rev_user - ORDER BY page_count + ORDER BY page_count DESC LIMIT {$limit}"; $sqlMostRevs = "SELECT rev_user, @@ -73,8 +73,8 @@ class ContributionScores extends IncludableSpecialPage COUNT(rev_id) AS rev_count FROM {$revTable} {$sqlWhere} - GROUP BY rev_user - ORDER BY rev_count + GROUP BY rev_user + ORDER BY rev_count DESC LIMIT {$limit}"; $sql = "SELECT user_id, " .