From: Sam Reed Date: Fri, 18 Feb 2011 01:10:38 +0000 (+0000) Subject: Remove unused variables X-Git-Tag: 1.31.0-rc.0~31936 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=2c6e16e5e5e9a367132942edc91dcc28e011b1be;p=lhc%2Fweb%2Fwiklou.git Remove unused variables --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index b86ea56581..a800fdfa07 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -67,7 +67,7 @@ class LinksUpdate { $this->mInterlangs[$key] = $title; } - foreach ( $this->mCategories as $cat => &$sortkey ) { + foreach ( $this->mCategories as &$sortkey ) { # If the sortkey is longer then 255 bytes, # it truncated by DB, and then doesn't get # matched when comparing existing vs current diff --git a/includes/filerepo/FSRepo.php b/includes/filerepo/FSRepo.php index a3419e6a15..d992986969 100644 --- a/includes/filerepo/FSRepo.php +++ b/includes/filerepo/FSRepo.php @@ -268,7 +268,7 @@ class FSRepo extends FileRepo { * @param $pairs array Pair of (zone, rel) pairs to delete */ function cleanupBatch( $pairs ) { - foreach ( $pairs as $i => $pair ) { + foreach ( $pairs as $pair ) { list( $zone, $rel ) = $pair; $root = $this->getZonePath( $zone ); $path = "$root/$rel"; diff --git a/includes/installer/PostgresInstaller.php b/includes/installer/PostgresInstaller.php index f73350e96e..8ebd39453e 100644 --- a/includes/installer/PostgresInstaller.php +++ b/includes/installer/PostgresInstaller.php @@ -274,7 +274,6 @@ class PostgresInstaller extends DatabaseInstaller { return $status; } - $db = $this->getVar( 'wgDBname' ); $schema = $this->getVar( 'wgDBmwschema' ); $safeuser = $this->db->addIdentifierQuotes( $this->getVar( 'wgDBuser' ) ); $safeusercheck = $this->db->addQuotes( $this->getVar( 'wgDBuser' ) ); diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 6b282c603e..2e4b608f27 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -68,7 +68,7 @@ class FileDuplicateSearchPage extends QueryPage { $html = array(); $html[] = $this->openList( 0 ); - foreach ( $dupes as $key => $dupe ) { + foreach ( $dupes as $dupe ) { $line = $this->formatResult( $skin, $dupe ); $html[] = "
  • " . $line . "
  • "; } diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index ea065a7fa4..a517b5a721 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -443,7 +443,6 @@ abstract class UploadBase { $localFile = $this->getLocalFile(); $filename = $localFile->getName(); - $n = strrpos( $filename, '.' ); /** * Check whether the resulting filename is different from the desired one, diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 11052b7f5c..d594a86582 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -65,7 +65,6 @@ class MonoBookTemplate extends BaseTemplate { global $wgRequest; $this->skin = $skin = $this->data['skin']; - $action = $wgRequest->getText( 'action' ); // Suppress warnings to prevent notices about missing indexes in $this->data wfSuppressWarnings();