mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
N°9567 - Extension Mgmt : Run setup
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user