Skip to content

Commit

Permalink
Merge pull request #12715 from atm-john/10.0_fix_document_module_call
Browse files Browse the repository at this point in the history
Fix document module call
  • Loading branch information
eldy committed Dec 16, 2019
2 parents 60a0c18 + 98bd4f3 commit c065afd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/core/class/html.formfile.class.php
Expand Up @@ -675,7 +675,10 @@ public function showdocuments($modulepart, $modulesubdir, $filedir, $urlsource,
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;
}
Expand Down

0 comments on commit c065afd

Please sign in to comment.