diff --git a/gamumail_pipelines.php b/gamumail_pipelines.php index 7968c4e..3d88e1b 100644 --- a/gamumail_pipelines.php +++ b/gamumail_pipelines.php @@ -23,11 +23,11 @@ if (!defined('_ECRIRE_INC_VERSION')) { * $flux['args']['options'] = $options * @return array $flux données du pipeline * - **/ + * function gamumail_remplacements_slug($flux) { return $flux; -} +}*/ /** * pipeline pour déclencher une action si le gamumail est envoyé OK @@ -36,11 +36,11 @@ function gamumail_remplacements_slug($flux) { * @param array $flux Données du pipeline * @return array Données du pipeline * - **/ + * function gamumail_post_gamumail_ok($flux) { return $flux; -} +}*/ /** * Optimiser la base de données diff --git a/inc/envoyer_gamumail.php b/inc/envoyer_gamumail.php index c3d884f..63c02cf 100644 --- a/inc/envoyer_gamumail.php +++ b/inc/envoyer_gamumail.php @@ -202,7 +202,7 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = [], $Tid_doc_pie // pipeline pour les remplacements du contenu des slugs spécifiques de chaque plugins $args = $options; $args['slug'] = $slug; - $args['destinataires'] = $pour; + $args['destinataires'] = $pour; $html = pipeline('remplacements_slug', array( 'args' => $args, 'data' => $html @@ -249,6 +249,7 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = [], $Tid_doc_pie 'args' => $args, 'data' => $sujet ]); +//var_dump($sujet); $sujet = $remplacement_generiques($args, $sujet); $envoyer_mail = charger_fonction('envoyer_mail', 'inc/'); $ok = $envoyer_mail($pour, $sujet, $corps); diff --git a/inclure/gamumail_config.html b/inclure/gamumail_config.html index 07faf4a..5e3332e 100644 --- a/inclure/gamumail_config.html +++ b/inclure/gamumail_config.html @@ -73,6 +73,7 @@ }