N°9567 - Extension Mgmt : Run setup

This commit is contained in:
Eric Espie
2026-05-18 16:20:49 +02:00
parent 39b131e102
commit 908e11d507
9 changed files with 200 additions and 53 deletions

View File

@@ -357,6 +357,9 @@ class ModuleDiscovery
{
$sDirectory = $sRootDir.'/'.$sRelDir;
if (!is_dir(utils::RealPath($sDirectory, APPROOT))) {
throw new Exception('Data directory ('.$sDirectory.') Does not exist or is outside iTop.');
}
if ($hDir = opendir($sDirectory)) {
// This is the correct way to loop over the directory. (according to the documentation)
while (($sFile = readdir($hDir)) !== false) {