mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
simplify WizardStep::GetTitle
This commit is contained in:
@@ -1372,9 +1372,13 @@ class WizStepModulesChoice extends WizardStep
|
|||||||
|
|
||||||
public function GetTitle()
|
public function GetTitle()
|
||||||
{
|
{
|
||||||
$aStepInfo = $this->GetStepInfo();
|
if (@file_exists($this->GetSourceFilePath())) {
|
||||||
$sTitle = isset($aStepInfo['title']) ? $aStepInfo['title'] : 'Modules selection';
|
// Found an "installation.xml" file, let's use this definition for the wizard
|
||||||
return $sTitle;
|
return 'Extensions';
|
||||||
|
}
|
||||||
|
|
||||||
|
// No wizard configuration provided, build a standard one with just one big list. All items are mandatory, only works when there are no conflicted modules.
|
||||||
|
return 'Modules Selection';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetPossibleSteps()
|
public function GetPossibleSteps()
|
||||||
|
|||||||
Reference in New Issue
Block a user