Remplacement de $conf par une constante

This commit is contained in:
Rodolphe Quiedeville 2003-05-16 12:58:48 +00:00
parent 8bf6ef620a
commit 378b4777e6

View File

@ -33,12 +33,14 @@ Class pdf_tourteau {
Function write_pdf_file($facid) Function write_pdf_file($facid)
{ {
global $conf;
$fac = new Facture($this->db,"",$facid); $fac = new Facture($this->db,"",$facid);
$fac->fetch($facid); $fac->fetch($facid);
$dir = $conf->facture->outputdir . "/" . $fac->ref . "/" ; if (defined("FAC_OUTPUTDIR"))
{
$dir = FAC_OUTPUTDIR . "/" . $fac->ref . "/" ;
$file = $dir . $fac->ref . ".pdf"; $file = $dir . $fac->ref . ".pdf";
if (! file_exists($dir)) if (! file_exists($dir))
@ -262,5 +264,6 @@ Class pdf_tourteau {
} }
} }
} }
}
?> ?>