Merge pull request #12715 from atm-john/10.0_fix_document_module_call

Fix document module call
This commit is contained in:
Laurent Destailleur 2019-12-16 19:03:31 +01:00 committed by GitHub
commit c065afd985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -675,7 +675,10 @@ class FormFile
else
{
$tmp=explode(':', $modulepart);
if (! empty($tmp[2])) $submodulepart=$tmp[2];
if (! empty($tmp[1])){
$modulepart=$tmp[0];
$submodulepart=$tmp[1];
}
$file=dol_buildpath('/'.$modulepart.'/core/modules/'.$modulepart.'/modules_'.$submodulepart.'.php', 0);
$res=include_once $file;
}