From b9c74de6d12ef40ab4baf67303ab22a10fcd5b32 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 25 Feb 2023 17:30:20 +0100 Subject: =?UTF-8?q?document=20locations,=20correction=20de=20pas=20mal=20d?= =?UTF-8?q?e=20probl=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/functions.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/functions.php') diff --git a/src/functions.php b/src/functions.php index 89bfbc9..bd91ddf 100644 --- a/src/functions.php +++ b/src/functions.php @@ -59,12 +59,7 @@ function makeLatexAndPdfDocument($documentType, Clients $Client = null, Prestati if($Client == null) // verso d'une enveloppe { - $data[0] = Config::$business_guy; - $data[1] = Config::$business_address; - $data[2] = implode(str_split(Config::$business_postcode)); - $data[3] = Config::$business_city; - - $latex = makeLatex($documentType, $data); // injection des variables + $latex = makeLatex($documentType); // pas de données transmises, elles sont dans la classe Config $file_name = 'enveloppe_verso'; } else @@ -106,7 +101,7 @@ function makeLatexAndPdfDocument($documentType, Clients $Client = null, Prestati latexToPdf($latex_path, $file_name, $pdf_path); } -function makeLatex(string $documentType, array $data, Dates $Date = null) +function makeLatex(string $documentType, array $data = [], Dates $Date = null) { $date = ''; if($Date != null) -- cgit v1.2.3