Fix : Bad value for modulepart

This commit is contained in:
Philippe GRAND 2018-04-20 16:47:49 +02:00
parent 53efccd98e
commit be600690cd

View File

@ -595,7 +595,7 @@ class FormFile
$file=dol_buildpath('/'.$modulepart.'/core/modules/'.$modulepart.'/modules_'.$modulepart.'.php',0);
$res=include_once $file;
}
$class='Modele'.ucfirst($modulepart);
$class='ModelePDF'.ucfirst($modulepart);
if (class_exists($class))
{
$modellist=call_user_func($class.'::liste_modeles',$this->db);