mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
(Retrofit from trunk) Fixed regression introduced by [r5235]: some directories (like data/production-modules) may not always exist... this should not stop the setup.
SVN:2.4[5273]
This commit is contained in:
@@ -359,8 +359,14 @@ class iTopExtensionsMap
|
||||
{
|
||||
$aSearchDirs[] = APPROOT.'/datamodels/1.x';
|
||||
}
|
||||
$aSearchDirs[] = APPROOT.'/extensions';
|
||||
$aSearchDirs[] = APPROOT.'/data/'.$sFromEnvironment.'-modules';
|
||||
if (is_dir(APPROOT.'/extensions'))
|
||||
{
|
||||
$aSearchDirs[] = APPROOT.'/extensions';
|
||||
}
|
||||
if (is_dir(APPROOT.'/data/'.$sFromEnvironment.'-modules'))
|
||||
{
|
||||
$aSearchDirs[] = APPROOT.'/data/'.$sFromEnvironment.'-modules';
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user