Fix: compatibility with custom path

This commit is contained in:
Regis Houssin 2011-05-15 08:43:29 +00:00
parent 48d0356d7e
commit 488938cde1

View File

@ -447,6 +447,8 @@ foreach ($conf->file->dol_document_root as $dirroot)
foreach($filelist as $file) foreach($filelist as $file)
{ {
if (preg_match('/\.modules\.php$/i',$file) && preg_match('/^(pdf_|doc_)/',$file)) if (preg_match('/\.modules\.php$/i',$file) && preg_match('/^(pdf_|doc_)/',$file))
{
if (file_exists($dir.'/'.$file))
{ {
$name = substr($file, 4, dol_strlen($file) -16); $name = substr($file, 4, dol_strlen($file) -16);
$classname = substr($file, 0, dol_strlen($file) -12); $classname = substr($file, 0, dol_strlen($file) -12);
@ -543,6 +545,7 @@ foreach ($conf->file->dol_document_root as $dirroot)
} }
} }
} }
}
} }
print '</table>'; print '</table>';