N°8981 setup wizard: optimize IsConnectableToITopHub use (perf)

N°8981: revert IsConnectableToITopHub
This commit is contained in:
odain
2026-01-05 21:13:39 +01:00
parent 193c980057
commit 9f3b8ec964
2 changed files with 7 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ class AnalyzeInstallation
* )
* @throws \Exception
*/
public function AnalyzeInstallation(?Config $oConfig, mixed $modulesPath, bool $bAbortOnMissingDependency = false, ?array $aModulesToLoad = null)
{
$aRes = [

View File

@@ -672,9 +672,13 @@ class WizStepLicense extends WizardStep
private function NeedsGdprConsent()
{
$sMode = $this->oWizard->GetParameter('install_mode');
$aModules = SetupUtils::AnalyzeInstallation($this->oWizard);
return (($sMode === 'install') && SetupUtils::IsConnectableToITopHub($aModules));
if ($sMode !== 'install') {
return false;
}
$aModules = SetupUtils::AnalyzeInstallation($this->oWizard);
return SetupUtils::IsConnectableToITopHub($aModules);
}
/**