This commit is contained in:
Regis Houssin 2006-02-18 14:16:54 +00:00
parent 8879b0dbd4
commit 8877aff657

View File

@ -137,7 +137,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers
$langs->load("products"); $langs->load("products");
$langs->load("orders"); $langs->load("orders");
if ($conf->commande->dir_output) if ($conf->fournisseur->commande->dir_output)
{ {
$com = new CommandeFournisseur($this->db); $com = new CommandeFournisseur($this->db);
$ret=$com->fetch($id); $ret=$com->fetch($id);
@ -146,7 +146,7 @@ class pdf_muscadet extends ModelePDFCommandesSuppliers
$comref = sanitize_string($com->ref); $comref = sanitize_string($com->ref);
$comref = str_replace("(","",$comref); $comref = str_replace("(","",$comref);
$comref = str_replace(")","",$comref); $comref = str_replace(")","",$comref);
$dir = $conf->commande->dir_output . "/" . $comref; $dir = $conf->fournisseur->commande->dir_output . "/" . $comref;
$file = $dir . "/" . $comref . ".pdf"; $file = $dir . "/" . $comref . ".pdf";
if (! file_exists($dir)) if (! file_exists($dir))