Ununsed variables
authorSam Reed <reedy@users.mediawiki.org>
Wed, 23 Feb 2011 12:35:41 +0000 (12:35 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 23 Feb 2011 12:35:41 +0000 (12:35 +0000)
Documentation and explicit definitions

includes/ChangesList.php
includes/SkinTemplate.php
includes/installer/MysqlInstaller.php
includes/installer/PostgresInstaller.php
includes/search/SearchPostgres.php
includes/specials/SpecialAllmessages.php

index 9e2d43c..782a229 100644 (file)
@@ -115,7 +115,7 @@ class ChangesList {
                                'botedit' => array( 'boteditletter', 'recentchanges-label-bot' ),
                                'unpatrolled' => array( 'unpatrolledletter', 'recentchanges-label-unpatrolled' ), 
                        );
-                       foreach( $messages as $key => &$value ) {
+                       foreach( $messages as &$value ) {
                                $value[0] = wfMsgExt( $value[0], 'escapenoentities' );
                                $value[1] = wfMsgExt( $value[1], 'escapenoentities' );
                        }
index 4f60d55..c62bafc 100644 (file)
@@ -1713,7 +1713,7 @@ abstract class BaseTemplate extends QuickTemplate {
 
                if ( $option == 'icononly' ) {
                        // Unset any icons which don't have an image
-                       foreach ( $footericons as $footerIconsKey => &$footerIconsBlock ) {
+                       foreach ( $footericons as &$footerIconsBlock ) {
                                foreach ( $footerIconsBlock as $footerIconKey => $footerIcon ) {
                                        if ( !is_string( $footerIcon ) && !isset( $footerIcon['src'] ) ) {
                                                unset( $footerIconsBlock[$footerIconKey] );
index 8e419de..c5a01e3 100644 (file)
@@ -349,7 +349,7 @@ class MysqlInstaller extends DatabaseInstaller {
        }
 
        public function submitSettingsForm() {
-               $newValues = $this->setVarsFromRequest( array( '_MysqlEngine', '_MysqlCharset' ) );
+               $this->setVarsFromRequest( array( '_MysqlEngine', '_MysqlCharset' ) );
                $status = $this->submitWebUserBox();
                if ( !$status->isOK() ) {
                        return $status;
index 8ebd394..1e55737 100644 (file)
@@ -162,7 +162,6 @@ class PostgresInstaller extends DatabaseInstaller {
                }
 
                // Validate the create checkbox
-               $create = true;
                $canCreate = $this->canCreateAccounts();
                if ( $canCreate ) {
                        $this->setVar( '_CreateDBAccount', false );
@@ -314,7 +313,6 @@ class PostgresInstaller extends DatabaseInstaller {
 
        public function createTables() {
                $schema = $this->getVar( 'wgDBmwschema' );
-               $user = $this->getVar( 'wgDBuser' );
 
                $this->db = null;
                $this->useAdmin = false;
index f32e898..0e5dc9b 100644 (file)
@@ -139,8 +139,6 @@ class SearchPostgres extends SearchEngine {
         * @param $colname
         */
        function searchQuery( $term, $fulltext, $colname ) {
-               $postgresVersion = $this->db->getServerVersion();
-
                # Get the SQL fragment for the given term
                $searchstring = $this->parseQuery( $term );
 
index d475d5f..1f39971 100644 (file)
  */
 class SpecialAllmessages extends SpecialPage {
 
+       /**
+        * @var AllmessagesTablePager
+        */
+       protected $table;
+
        /**
         * Constructor
         */
@@ -59,7 +64,7 @@ class SpecialAllmessages extends SpecialPage {
 
                $this->table = new AllmessagesTablePager(
                        $this,
-                       $conds = array(),
+                       array(),
                        wfGetLangObj( $wgRequest->getVal( 'lang', $par ) )
                );
 
@@ -151,6 +156,11 @@ class AllmessagesTablePager extends TablePager {
 
        public $mLimitsShown;
 
+       /**
+        * @var Language 
+        */
+       public $lang;
+
        function __construct( $page, $conds, $langObj = null ) {
                parent::__construct();
                $this->mIndexField = 'am_title';