From 3a791162c5993f6f1f04ec26879652128a356946 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 21 Nov 2019 17:44:04 +0100 Subject: [PATCH] :zap: setup module browsing perf improvement When a module descriptor file is found, do not dig anymore in subdirectories 2nd fix, should be better than previous one (4042a12d reverted with 5ebc290b) --- setup/extensionsmap.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/extensionsmap.class.inc.php b/setup/extensionsmap.class.inc.php index 25a485947..4401175e6 100644 --- a/setup/extensionsmap.class.inc.php +++ b/setup/extensionsmap.class.inc.php @@ -345,6 +345,10 @@ class iTopExtensionsMap $oExtension->bVisible = $bVisible; $this->AddExtension($oExtension); } + + closedir($hDir); + + return true; // we found a module, no more digging necessary ! } } }