forked from Wavyzz/dolibarr
Fix: problem with external modules and uniformize code
This commit is contained in:
@@ -60,12 +60,15 @@ class FileUpload
|
||||
if ($element == 'propal') {
|
||||
$pathname = 'comm/propal'; $filename = 'propal';
|
||||
}
|
||||
if ($element == 'commande') {
|
||||
elseif ($element == 'commande') {
|
||||
$pathname = $filename = 'commande';
|
||||
}
|
||||
if ($element == 'facture') {
|
||||
elseif ($element == 'facture') {
|
||||
$pathname = 'compta/facture'; $filename = 'facture';
|
||||
}
|
||||
elseif ($element == 'project') {
|
||||
$element = $pathname = 'projet'; $filename = 'project';
|
||||
}
|
||||
|
||||
dol_include_once('/'.$pathname.'/class/'.$filename.'.class.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user