Fix: bad path in error message

This commit is contained in:
Regis Houssin
2012-01-06 10:19:07 +01:00
parent 33049e9f19
commit b9d9f3b5b1
7 changed files with 9 additions and 9 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}
}

View File

@@ -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;
}