Fix: Pb creation répertoire.
This commit is contained in:
parent
c08f71beaa
commit
79c0871497
@ -66,14 +66,13 @@ class pdf_adytek extends ModelePDFFactures {
|
||||
$file = $dir . "/" . $facref . ".pdf";
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($dir))
|
||||
{
|
||||
|
||||
@ -63,14 +63,13 @@ class pdf_bernique extends ModelePDFFactures {
|
||||
$file = $dir . $facref . ".pdf";
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($dir))
|
||||
{
|
||||
|
||||
@ -61,14 +61,13 @@ class pdf_bigorneau extends ModelePDFFactures {
|
||||
$file = $dir . $facref . ".pdf";
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($dir))
|
||||
{
|
||||
|
||||
@ -65,14 +65,13 @@ class pdf_bulot extends ModelePDFFactures {
|
||||
$file = $dir . "/" . $facref . ".pdf";
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($dir))
|
||||
{
|
||||
|
||||
@ -112,8 +112,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
@ -579,7 +578,7 @@ class pdf_crabe extends ModelePDFFactures
|
||||
if (defined("FAC_PDF_LOGO") && FAC_PDF_LOGO)
|
||||
{
|
||||
if (file_exists(FAC_PDF_LOGO)) {
|
||||
$pdf->Image(FAC_PDF_LOGO, 10, 5, 0, 24, 'PNG');
|
||||
$pdf->Image(FAC_PDF_LOGO, 10, 5, 0, 24);
|
||||
}
|
||||
else {
|
||||
$pdf->SetTextColor(200,0,0);
|
||||
|
||||
@ -112,14 +112,13 @@ class pdf_oursin extends ModelePDFFactures
|
||||
$file = $dir . "/" . $facref . ".pdf";
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($dir))
|
||||
{
|
||||
|
||||
@ -61,14 +61,13 @@ class pdf_tourteau extends ModelePDFFactures {
|
||||
$file = $dir . $facref . ".pdf";
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
umask(0);
|
||||
if (! mkdir($dir, 0755))
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
{
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$this->error=$langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($dir))
|
||||
{
|
||||
|
||||
@ -75,7 +75,7 @@ if ($_GET["id"])
|
||||
|
||||
if (! file_exists($dir))
|
||||
{
|
||||
if (! create_exdir($dir))
|
||||
if (create_exdir($dir) < 0)
|
||||
{
|
||||
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user