From 0834ff7ba310b410f49fe1db0803ca2f638e95fa Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 5 Jan 2026 15:19:17 +0100 Subject: [PATCH] Suppression code inutile --- admin/generer_recus.php | 8 +++----- admin/script.js | 4 +--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/admin/generer_recus.php b/admin/generer_recus.php index b903c40..6fa83bf 100644 --- a/admin/generer_recus.php +++ b/admin/generer_recus.php @@ -22,8 +22,6 @@ $signature = \KD2\HTTP::getScheme() . '://' . \KD2\HTTP::getHost() . WWW_URI . $plugin->getConfig('signature') : ""); -// http://test.paheko.bzh/config/cavalier.png -error_log('signature = ' . $signature); // logo $config = Config::getInstance(); $logo_asso = @@ -210,9 +208,9 @@ function genererRecusPDF($totalPersonnes, ); //supprimer les fichiers pdf - // foreach ($listeFichiersPDF as $f) { - // \Paheko\Utils::safe_unlink($f); - // } + foreach ($listeFichiersPDF as $f) { + \Paheko\Utils::safe_unlink($f); + } } // genererRecusPDF function generererRecusHTML($tpl, diff --git a/admin/script.js b/admin/script.js index 8faea47..8f68766 100644 --- a/admin/script.js +++ b/admin/script.js @@ -285,10 +285,8 @@ function verifierCases(conteneur, type, message) { */ function changerStyle(document) { let styles = document.querySelectorAll('link[rel="stylesheet"]'); - // console.log(styles); for (let sheet of styles) { - if (sheet.href.includes('print.css')) { sheet.media = "tv"; sheet.remove; } + if (sheet.href.includes('print.css')) { sheet.media = "tv"; } if (sheet.href.includes('imprimer_recu.css')) { sheet.media = 'print'; } } - // console.log(styles); }