$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 );
$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 ) );
}