Merge pull request #12715 from atm-john/10.0_fix_document_module_call
Fix document module call
This commit is contained in:
commit
c065afd985
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue