r25085 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25084‎ | r25085 | r25086 >
Date:15:41, 23 August 2007
Author:tlaqua
Status:old
Tags:
Comment:
Removed unused vars.
Modified paths:
  • /trunk/extensions/ContributionScores/ContributionScores_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionScores/ContributionScores_body.php
@@ -6,7 +6,7 @@
77 self::loadMessages();
88 }
99
10 - function genContributionScoreTable( $sql, $dbr, $days, $limit ) {
 10+ function genContributionScoreTable( $days, $limit ) {
1111 global $contribScoreIgnoreBots;
1212
1313 $dbr =& wfGetDB( DB_SLAVE );
@@ -19,7 +19,7 @@
2020 "user_name, " .
2121 "COUNT(DISTINCT rev_page) AS page_count, " .
2222 "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 " .
2424 "FROM $userTable userTable JOIN $revTable revTable ON (userTable.user_id=revTable.rev_user) ";
2525
2626 if ( $days > 0 ) {
@@ -94,7 +94,7 @@
9595 $reportTitle = "All Revisions";
9696 }
9797 $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]));
9999 }
100100 }
101101

Status & tagging log