mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 00:58:48 +02:00
N°9409 - Designer 3.3.0
This commit is contained in:
@@ -308,18 +308,20 @@ class MFModule
|
||||
{
|
||||
$aDictionaries = [];
|
||||
foreach ([$this->sRootDir, $this->sRootDir.'/dictionaries'] as $sRootDir) {
|
||||
if ($hDir = @opendir($sRootDir)) {
|
||||
while (($sFile = readdir($hDir)) !== false) {
|
||||
$aMatches = [];
|
||||
if (preg_match(
|
||||
"/^[^\\.]+.dict.".$this->sName.'.php$/i',
|
||||
$sFile,
|
||||
$aMatches
|
||||
)) { // Dictionary files are named like <Lang>.dict.<ModuleName>.php
|
||||
$aDictionaries[] = $sRootDir.'/'.$sFile;
|
||||
if (is_dir($sRootDir)) {
|
||||
if ($hDir = @opendir($sRootDir)) {
|
||||
while (($sFile = readdir($hDir)) !== false) {
|
||||
$aMatches = [];
|
||||
if (preg_match(
|
||||
"/^[^\\.]+.dict.".$this->sName.'.php$/i',
|
||||
$sFile,
|
||||
$aMatches
|
||||
)) { // Dictionary files are named like <Lang>.dict.<ModuleName>.php
|
||||
$aDictionaries[] = $sRootDir.'/'.$sFile;
|
||||
}
|
||||
}
|
||||
closedir($hDir);
|
||||
}
|
||||
closedir($hDir);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user