From 88f7649258439b6d8f30bb7ce25c60663b8547bc Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 25 Jul 2010 21:44:29 +0000 Subject: [PATCH] More unused variables, whitespace --- includes/ChangeTags.php | 1 - includes/RevisionDelete.php | 2 +- includes/UserMailer.php | 2 -- includes/media/GIF.php | 4 ++-- includes/specials/SpecialMovepage.php | 2 +- includes/specials/SpecialRevisiondelete.php | 2 -- includes/specials/SpecialTags.php | 3 +-- maintenance/populateLogUsertext.php | 2 +- maintenance/populateSha1.php | 3 +-- maintenance/storage/moveToExternal.php | 3 +-- maintenance/storage/orphanStats.php | 1 - maintenance/tests/ApiTest.php | 3 --- skins/Vector.php | 1 - 13 files changed, 8 insertions(+), 21 deletions(-) diff --git a/includes/ChangeTags.php b/includes/ChangeTags.php index 3589560b6e..58f56efbc2 100644 --- a/includes/ChangeTags.php +++ b/includes/ChangeTags.php @@ -119,7 +119,6 @@ class ChangeTags { } // Figure out which conditions can be done. - $join_field = ''; if ( in_array( 'recentchanges', $tables ) ) { $join_cond = 'rc_id'; } elseif( in_array( 'logging', $tables ) ) { diff --git a/includes/RevisionDelete.php b/includes/RevisionDelete.php index 7a540a0719..8dfecc3232 100644 --- a/includes/RevisionDelete.php +++ b/includes/RevisionDelete.php @@ -150,7 +150,7 @@ class RevisionDeleter { $originalKey = $key = $paramArray[0]; // $paramArray[1] is a CSV of the IDs $Ids = explode( ',', $paramArray[1] ); - $query = $paramArray[1]; + $revert = array(); // For if undeleted revisions are found amidst deleted ones. diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 14470454c2..fec7c6e79a 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -367,8 +367,6 @@ class EmailNotification { # 2. minor edits (changes) are only regarded if the global flag indicates so $isUserTalkPage = ($title->getNamespace() == NS_USER_TALK); - $enotifusertalkpage = ($isUserTalkPage && $wgEnotifUserTalk); - $enotifwatchlistpage = $wgEnotifWatchlist; $this->title = $title; $this->timestamp = $timestamp; diff --git a/includes/media/GIF.php b/includes/media/GIF.php index 4679963fb5..ed3facba64 100644 --- a/includes/media/GIF.php +++ b/includes/media/GIF.php @@ -61,8 +61,8 @@ class GIFHandler extends BitmapHandler { } function getLongDesc( $image ) { - global $wgUser, $wgLang; - $sk = $wgUser->getSkin(); + global $wgLang; + $original = parent::getLongDesc( $image ); wfSuppressWarnings(); diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 450c210975..2f78b53c24 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -82,7 +82,7 @@ class MovePageForm { function __construct( $oldTitle, $newTitle ) { global $wgRequest, $wgUser; - $target = isset($par) ? $par : $wgRequest->getVal( 'target' ); + $this->oldTitle = $oldTitle; $this->newTitle = $newTitle; $this->reason = $wgRequest->getText( 'wpReason' ); diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 4df058724d..cad4a0b848 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -351,8 +351,6 @@ class SpecialRevisionDelete extends UnlistedSpecialPage { $wgOut->addHTML( "