Fix : ne pas passer en 3ème paramètre de l'appel de generer_pdf() : le type n'est pas du tout adapté (array à la place de string|bool)

This commit is contained in:
cy_altern 2024-12-05 21:06:17 +01:00
parent f5c6c696a2
commit 3caca6a1fc

View file

@ -3,9 +3,7 @@ if (!defined('_ECRIRE_INC_VERSION')){
return; return;
} }
function inc_charger_pdf_dist($fichier_pdf, $context = [], $post = false){ function inc_charger_pdf_dist($fichier_pdf, $contexte = [], $args = []){
// appel de la fonction de génération des PDFs de Gamufonctions
$f = charger_fonction('generer_pdf','gamu'); $f = charger_fonction('generer_pdf','gamu');
return $f($fichier_pdf, $context, $post); return $f($fichier_pdf, $contexte);
} }