From 9f3b8ec964d82ff4e7ad3fc517092016413a6d3f Mon Sep 17 00:00:00 2001 From: odain Date: Mon, 5 Jan 2026 21:13:39 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08981=20setup=20wizard:=20optimize=20IsCo?= =?UTF-8?q?nnectableToITopHub=20use=20(perf)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit N°8981: revert IsConnectableToITopHub --- setup/AnalyzeInstallation.php | 1 + setup/wizardsteps.class.inc.php | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/setup/AnalyzeInstallation.php b/setup/AnalyzeInstallation.php index 96b902ce5..ca0c35ea1 100644 --- a/setup/AnalyzeInstallation.php +++ b/setup/AnalyzeInstallation.php @@ -58,6 +58,7 @@ class AnalyzeInstallation * ) * @throws \Exception */ + public function AnalyzeInstallation(?Config $oConfig, mixed $modulesPath, bool $bAbortOnMissingDependency = false, ?array $aModulesToLoad = null) { $aRes = [ diff --git a/setup/wizardsteps.class.inc.php b/setup/wizardsteps.class.inc.php index c2f9860f4..67b2a18aa 100644 --- a/setup/wizardsteps.class.inc.php +++ b/setup/wizardsteps.class.inc.php @@ -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); } /**