Another big cull on unused variables and such
This commit is contained in:
@@ -53,10 +53,6 @@ function efContributionScores_LanguageGetMagic( &$magicWords, $langCode ) {
|
|||||||
function efContributionScores_Render(&$parser, $usertext, $metric='score') {
|
function efContributionScores_Render(&$parser, $usertext, $metric='score') {
|
||||||
global $wgContribScoreDisableCache;
|
global $wgContribScoreDisableCache;
|
||||||
|
|
||||||
wfLoadExtensionMessages( 'ContributionScores' );
|
|
||||||
|
|
||||||
$output = "";
|
|
||||||
|
|
||||||
if ($wgContribScoreDisableCache) {
|
if ($wgContribScoreDisableCache) {
|
||||||
$parser->disableCache();
|
$parser->disableCache();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class ContributionScores extends IncludableSpecialPage {
|
|||||||
ORDER BY rev_count DESC
|
ORDER BY rev_count DESC
|
||||||
LIMIT {$limit}";
|
LIMIT {$limit}";
|
||||||
|
|
||||||
$sql = "SELECT user_id, " .
|
$sql = "SELECT user_id, " .
|
||||||
"user_name, " .
|
"user_name, " .
|
||||||
"page_count, " .
|
"page_count, " .
|
||||||
"rev_count, " .
|
"rev_count, " .
|
||||||
@@ -137,8 +137,6 @@ class ContributionScores extends IncludableSpecialPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function execute( $par ) {
|
function execute( $par ) {
|
||||||
global $wgRequest, $wgOut, $wgHooks;
|
|
||||||
|
|
||||||
$this->setHeaders();
|
$this->setHeaders();
|
||||||
|
|
||||||
if( $this->including() ) {
|
if( $this->including() ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user