From: Sam Reed Date: Sun, 25 Jul 2010 21:44:29 +0000 (+0000) Subject: More unused variables, whitespace X-Git-Tag: 1.31.0-rc.0~35919 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=88f7649258439b6d8f30bb7ce25c60663b8547bc;p=lhc%2Fweb%2Fwiklou.git More unused variables, whitespace --- 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( "