From 0e15fc841de0c8bebc45634bdbc631a80469f604 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 29 Oct 2010 21:55:29 +0000 Subject: [PATCH] Another big cull on unused variables and such --- ContributionScores.php | 4 ---- ContributionScores_body.php | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/ContributionScores.php b/ContributionScores.php index b879eb8..db36e11 100644 --- a/ContributionScores.php +++ b/ContributionScores.php @@ -53,10 +53,6 @@ function efContributionScores_LanguageGetMagic( &$magicWords, $langCode ) { function efContributionScores_Render(&$parser, $usertext, $metric='score') { global $wgContribScoreDisableCache; - wfLoadExtensionMessages( 'ContributionScores' ); - - $output = ""; - if ($wgContribScoreDisableCache) { $parser->disableCache(); } diff --git a/ContributionScores_body.php b/ContributionScores_body.php index 57fc880..ca607ed 100644 --- a/ContributionScores_body.php +++ b/ContributionScores_body.php @@ -80,7 +80,7 @@ class ContributionScores extends IncludableSpecialPage { ORDER BY rev_count DESC LIMIT {$limit}"; - $sql = "SELECT user_id, " . + $sql = "SELECT user_id, " . "user_name, " . "page_count, " . "rev_count, " . @@ -136,9 +136,7 @@ class ContributionScores extends IncludableSpecialPage { return $output; } - function execute( $par ) { - global $wgRequest, $wgOut, $wgHooks; - + function execute( $par ) { $this->setHeaders(); if( $this->including() ) {