minor cleanup
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 29 Mar 2011 17:34:00 +0000 (17:34 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 29 Mar 2011 17:34:00 +0000 (17:34 +0000)
includes/installer/Installer.php
maintenance/install.php

index 5535bd8..5f982d7 100644 (file)
@@ -607,13 +607,10 @@ abstract class Installer {
                $allNames = array();
 
                foreach ( self::getDBTypes() as $name ) {
-                       $db = $this->getDBInstaller( $name );
-                       $readableName = wfMsg( 'config-type-' . $name );
-
-                       if ( $db->isCompiled() ) {
+                       if ( $this->getDBInstaller( $name )->isCompiled() ) {
                                $compiledDBs[] = $name;
                        }
-                       $allNames[] = $readableName;
+                       $allNames[] = wfMsg( 'config-type-' . $name );;
                }
 
                $this->setVar( '_CompiledDBs', $compiledDBs );
index e782be9..caaf285 100644 (file)
@@ -63,22 +63,14 @@ class CommandLineInstaller extends Maintenance {
                $installer =
                        new CliInstaller( $siteName, $adminName, $this->mOptions );
 
-               if ( $this->hasOption( 'env-checks' ) ) {
-                       $status = $installer->doEnvironmentChecks();
-                       if( $status->isGood() ) {
-                               $installer->showMessage( 'config-env-good' );
-                       } else {
-                               $installer->showStatusMessage( $status );
-                               return;
-                       }
+               $status = $installer->doEnvironmentChecks();
+               if( $status->isGood() ) {
+                       $installer->showMessage( 'config-env-good' );
                } else {
-                       $status = $installer->doEnvironmentChecks();
-                       if( $status->isGood() ) {
-                               $installer->showMessage( 'config-env-good' );
-                       } else {
-                               $installer->showStatusMessage( $status );
-                               return;
-                       }
+                       $installer->showStatusMessage( $status );
+                       return;
+               }
+               if( !$this->getVar( 'env-checks' ) ) {
                        $installer->execute();
                        $installer->writeConfigurationFile( $this->getOption( 'confpath', $IP ) );
                }