forked from Wavyzz/dolibarr
Fix: bad path in error message
This commit is contained in:
@@ -233,7 +233,7 @@ function commande_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
|
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ function expedition_pdf_create($db, $object, $modele, $outputlangs)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file));
|
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ function facture_pdf_create($db, $object, $message, $modele, $outputlangs, $hide
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file));
|
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ function fichinter_create($db, $object, $modele='', $outputlangs='')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
|
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ function delivery_order_pdf_create($db, $object, $model='', $outputlangs='')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
|
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ function propale_pdf_create($db, $object, $modele, $outputlangs, $hidedetails=0,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file));
|
dol_print_error('',$langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ function supplier_order_pdf_create($db, $object, $model, $outputlangs, $hidedeta
|
|||||||
// Si model pas encore bon
|
// Si model pas encore bon
|
||||||
if (! $modelisok)
|
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";
|
$file = "pdf_".$model.".modules.php";
|
||||||
// On verifie l'emplacement du modele
|
// On verifie l'emplacement du modele
|
||||||
$file = dol_buildpath($dir.$file);
|
$file = dol_buildpath($dir.$file);
|
||||||
@@ -179,7 +179,7 @@ function supplier_order_pdf_create($db, $object, $model, $outputlangs, $hidedeta
|
|||||||
if (! $modelisok)
|
if (! $modelisok)
|
||||||
{
|
{
|
||||||
$liste=ModelePDFSuppliersOrders::liste_modeles($db);
|
$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";
|
$file = "pdf_".$model.".modules.php";
|
||||||
// On verifie l'emplacement du modele
|
// On verifie l'emplacement du modele
|
||||||
$file = dol_buildpath($dir.$file);
|
$file = dol_buildpath($dir.$file);
|
||||||
@@ -222,7 +222,7 @@ function supplier_order_pdf_create($db, $object, $model, $outputlangs, $hidedeta
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$dir.$file);
|
print $langs->trans("Error")." ".$langs->trans("ErrorFileDoesNotExists",$file);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user