* 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',
|
||||
'author'=>'Tim Laqua',
|
||||
'description'=>'Polls wiki database for highest user contribution volume',
|
||||
'version'=>'1.7'
|
||||
'version'=>'1.7.1'
|
||||
);
|
||||
|
||||
define( 'CONTRIBUTIONSCORES_PATH', dirname( __FILE__ ) );
|
||||
|
|
|
@ -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, " .
|
||||
|
|
Loading…
Add table
Reference in a new issue