From 4a1a9325033a2080d070b8a43cf408ed557b8813 Mon Sep 17 00:00:00 2001 From: clem Date: Mon, 14 Sep 2020 15:39:53 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20des=20PDFs=20g=C3=A9n=C3=A9r=C3=A9s=20a?= =?UTF-8?q?vec=20passage=20de=20param=C3=A8tres=20dans=20les=20pi=C3=A8ces?= =?UTF-8?q?=20jointes=20de=20l'envoi=20de=20gamumails=20via=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/envoyer_gamumail.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/envoyer_gamumail.php b/inc/envoyer_gamumail.php index a2fca8a..27a7461 100644 --- a/inc/envoyer_gamumail.php +++ b/inc/envoyer_gamumail.php @@ -105,7 +105,7 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = []) { ]; } } - + // les pdfs if (isset($options['pdfs'])) { $Tpdfs = $options['pdfs']; @@ -129,19 +129,19 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = []) { foreach ($Tpdfs as $pdf) { if (!is_array($pdf)) { $sq_pdf = $pdf; - $context = []; + $contexte = []; $nom = $pdf; } elseif (array_key_exists('fichier', $pdf)) { $sq_pdf = $pdf['fichier']; - $context = array_key_exists('context', $pdf) ? $pdf['context'] : []; + $contexte = array_key_exists('contexte', $pdf) ? $pdf['contexte'] : []; $nom = array_key_exists('nom', $pdf) ? $pdf['nom'] : $pdf; } else break; } $recup_pdf = charger_fonction('charger_pdf','inc'); - $pdf = $recup_pdf($sq_pdf, $context); + $pdf = $recup_pdf($sq_pdf, $contexte); $nom_fichier = $nom.'.pdf'; $destination = _DIR_TMP.basename($nom_fichier); $Tpdf_dell[] = $destination;