diff --git a/setup/wizardsteps.class.inc.php b/setup/wizardsteps.class.inc.php index 5e5fb3ad1..8a213e9af 100644 --- a/setup/wizardsteps.class.inc.php +++ b/setup/wizardsteps.class.inc.php @@ -65,7 +65,7 @@ class WizStepWelcome extends WizardStep $sMiscOptions = $this->oWizard->GetParameter('misc_options', json_encode($aMiscOptions)); $this->oWizard->SetParameter('misc_options', $sMiscOptions); - $oPage->add('

iTop Installation Wizard

'); + $oPage->add('

'.ITOP_APPLICATION.' Installation Wizard

'); $aResults = SetupUtils::CheckPHPVersion($oPage); $this->bCanMoveForward = true; $aInfo = array(); @@ -249,9 +249,9 @@ class WizStepInstallOrUpgrade extends WizardStep $sMySQLDumpMessage .= ' '.$oCheck->sLabel.' '; } } - $sChecked = ($bCanBackup && ($bDBBackup == 'install')) ? ' checked ' : ''; + $sChecked = ($bCanBackup && $bDBBackup) ? ' checked ' : ''; $sDisabled = $bCanBackup ? '' : ' disabled '; - $oPage->add(' Backup the '.ITOP_APPLICATION.' database before upgrading'); + $oPage->add(''); $oPage->add('Save the backup to: '); $fFreeSpace = SetupUtils::CheckDiskSpace($sDBBackupPath); $sMessage = ''; @@ -1969,23 +1969,23 @@ class WizStepDone extends WizardStep { $oPage->p("Manual instructions for $sModuleLabel"); } - $oPage->add("

Congratulations for installing iTop

"); + $oPage->add("

Congratulations for installing ".ITOP_APPLICATION."

"); } else { - $oPage->add("

Congratulations for installing iTop

"); + $oPage->add("

Congratulations for installing ".ITOP_APPLICATION."

"); $oPage->ok("The installation completed successfully."); } - if ($this->oWizard->GetParameter('db_backup', false)) + if (($this->oWizard->GetParameter('mode', '') == 'upgrade') && $this->oWizard->GetParameter('db_backup', false)) { $sBackupDestination = $this->oWizard->GetParameter('db_backup_path', ''); if (file_exists($sBackupDestination)) { - // To mitigate security risks: pass only the filename without the extension, the download will add the extensino itself + // To mitigate security risks: pass only the filename without the extension, the download will add the extension itself $sTruncatedFilePath = preg_replace('/\.zip$/', '', $sBackupDestination); $oPage->p('Your backup is ready'); - $oPage->p(' Download '.basename($sBackupDestination).''); + $oPage->p(' Download '.basename($sBackupDestination).''); } else { @@ -2002,7 +2002,7 @@ class WizStepDone extends WizardStep $sForm = '
'; $sForm .= ''; $sForm .= ''; - $sForm .= "

"; + $sForm .= "

"; $sForm .= '
'; $oPage->add(''); $sForm = addslashes($sForm);