Index: trunk/extensions/ContributionScores/ContributionScores_body.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | self::loadMessages(); |
8 | 8 | } |
9 | 9 | |
10 | | - function genContributionScoreTable( $sql, $dbr, $days, $limit ) { |
| 10 | + function genContributionScoreTable( $days, $limit ) { |
11 | 11 | global $contribScoreIgnoreBots; |
12 | 12 | |
13 | 13 | $dbr =& wfGetDB( DB_SLAVE ); |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | "user_name, " . |
21 | 21 | "COUNT(DISTINCT rev_page) AS page_count, " . |
22 | 22 | "COUNT(rev_id) AS rev_count, " . |
23 | | - "(COUNT(DISTINCT rev_page)+SQRT(COUNT(rev_id)-COUNT(DISTINCT rev_page))*2) AS wikiRank " . |
| 23 | + "COUNT(DISTINCT rev_page)+SQRT(COUNT(rev_id)-COUNT(DISTINCT rev_page))*2 AS wikiRank " . |
24 | 24 | "FROM $userTable userTable JOIN $revTable revTable ON (userTable.user_id=revTable.rev_user) "; |
25 | 25 | |
26 | 26 | if ( $days > 0 ) { |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | $reportTitle = "All Revisions"; |
96 | 96 | } |
97 | 97 | $reportTitle .= " (Top $scoreReport[1])"; |
98 | | - $wgOut->addWikiText ("== $reportTitle ==\n".$this->genContributionScoreTable($sql,$dbr,$scoreReport[0],$scoreReport[1])); |
| 98 | + $wgOut->addWikiText ("== $reportTitle ==\n".$this->genContributionScoreTable($scoreReport[0],$scoreReport[1])); |
99 | 99 | } |
100 | 100 | } |
101 | 101 | |