Another big cull on unused variables and such

This commit is contained in:
Sam Reed 2010-10-29 21:55:29 +00:00
parent fe3076c95a
commit 0e15fc841d
2 changed files with 2 additions and 8 deletions

View file

@ -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();
}

View file

@ -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() ) {