Skip to content
Snippets Groups Projects
Commit b9d9f3b5 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: bad path in error message

parent 33049e9f
No related branches found
No related tags found
No related merge requests found
......@@ -233,7 +233,7 @@ function commande_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0
}
else
{
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
}
return 0;
}
......
......@@ -223,7 +223,7 @@ function expedition_pdf_create($db, $object, $modele, $outputlangs)
}
else
{
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file));
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file));
return -1;
}
}
......
......@@ -239,7 +239,7 @@ function facture_pdf_create($db, $object, $message, $modele, $outputlangs, $hide
}
else
{
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file));
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file));
return -1;
}
}
......
......@@ -192,7 +192,7 @@ function fichinter_create($db, $object, $modele='', $outputlangs='')
}
else
{
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
return 0;
}
}
......
......@@ -189,7 +189,7 @@ function delivery_order_pdf_create($db, $object, $model='', $outputlangs='')
}
else
{
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
return 0;
}
}
......
......@@ -230,7 +230,7 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
}
else
{
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file));
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file));
return -1;
}
}
......
......@@ -168,7 +168,7 @@ function supplier_order_pdf_create($db, $object, $model, $outputlangs, $hidedeta
// Si model pas encore bon
if (! $modelisok)
{
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF) $modele = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF;
if ($conf->global->COMMANDE_SUPPLIER_ADDON_PDF) $model = $conf->global->COMMANDE_SUPPLIER_ADDON_PDF;
$file = "pdf_".$model.".modules.php";
// On verifie l'emplacement du modele
$file = dol_buildpath($dir.$file);
......@@ -179,7 +179,7 @@ function supplier_order_pdf_create($db, $object, $model, $outputlangs, $hidedeta
if (! $modelisok)
{
$liste=ModelePDFSuppliersOrders::liste_modeles($db);
$modele=key($liste); // Renvoie la premiere valeur de cle trouvee dans le tableau
$model=key($liste); // Renvoie la premiere valeur de cle trouvee dans le tableau
$file = "pdf_".$model.".modules.php";
// On verifie l'emplacement du modele
$file = dol_buildpath($dir.$file);
......@@ -222,7 +222,7 @@ function supplier_order_pdf_create($db, $object, $model, $outputlangs, $hidedeta
}
else
{
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment