mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 00:32:16 +02:00
N°5090 Setup : improve missing dependencies message (#280)
The setup now relies on the new method MissingDependencyException::getHtmlDesc to get the message to display MissingDependencyException is also now a CoreException child. Note that previous behavior (MissingDependencyException instantiator setting message) is kept, as some consumer still do $e->getMessage() (like unattended install)
This commit is contained in:
@@ -1351,7 +1351,7 @@ class WizStepModulesChoice extends WizardStep
|
||||
}
|
||||
catch(MissingDependencyException $e)
|
||||
{
|
||||
$oPage->warning($e->getMessage());
|
||||
$oPage->warning($e->getHtmlDesc());
|
||||
}
|
||||
|
||||
$this->bUpgrade = ($this->oWizard->GetParameter('install_mode') != 'install');
|
||||
@@ -2092,7 +2092,7 @@ class WizStepSummary extends WizardStep
|
||||
catch(MissingDependencyException $e)
|
||||
{
|
||||
$this->bDependencyCheck = false;
|
||||
$this->sDependencyIssue = $e->getMessage();
|
||||
$this->sDependencyIssue = $e->getHtmlDesc();
|
||||
}
|
||||
}
|
||||
return $this->bDependencyCheck;
|
||||
|
||||
Reference in New Issue
Block a user