diff --git a/base/gamumail.php b/base/gamumail.php index f53ea4f..124272c 100644 --- a/base/gamumail.php +++ b/base/gamumail.php @@ -54,6 +54,7 @@ function gamumail_declarer_tables_objets_sql($tables) { 'texte' => 'text NOT NULL DEFAULT ""', 'id_docs' => 'text NOT NULL DEFAULT ""', 'statut' => 'varchar(20) DEFAULT "0" NOT NULL', + 'public' => 'varchar(20) DEFAULT "oui" NOT NULL', 'maj' => 'TIMESTAMP' ), 'key' => array( diff --git a/gamumail_administrations.php b/gamumail_administrations.php index d87d870..d74c65d 100644 --- a/gamumail_administrations.php +++ b/gamumail_administrations.php @@ -35,7 +35,7 @@ function gamumail_upgrade($nom_meta_base_version, $version_cible) { $maj['1.0.6'] = array(array('maj_tables', array('spip_gamumails'))); $maj['1.0.11'] = array( array('maj_tables', array('spip_gamumails'))); $maj['1.0.12'] = array(array('creer_compte_curl')); - + $maj['1.0.13'] = array(array('maj_tables', array('spip_gamumails'))); include_spip('base/upgrade'); maj_plugin($nom_meta_base_version, $version_cible, $maj); diff --git a/inc/envoyer_gamumail.php b/inc/envoyer_gamumail.php index 27a7461..f1c3c0d 100644 --- a/inc/envoyer_gamumail.php +++ b/inc/envoyer_gamumail.php @@ -107,6 +107,7 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = []) { } // les pdfs + $Tpdf_dell = []; if (isset($options['pdfs'])) { $Tpdfs = $options['pdfs']; if (!is_array($Tpdfs)) { @@ -124,7 +125,6 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = []) { $options = $f($options, $pour[0], [], $Tpdfs); } - $Tpdf_dell = []; if (!empty($Tpdfs) and is_array($Tpdfs)) { foreach ($Tpdfs as $pdf) { if (!is_array($pdf)) { @@ -230,10 +230,6 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = []) { unlink($pdf); } } -/* - if ($redirect) { - $retour['redirect'] = $redirect; - } -*/ + return $retour; } diff --git a/inclure/gamumail_config.html b/inclure/gamumail_config.html index 6c9d347..5aa9d2d 100644 --- a/inclure/gamumail_config.html +++ b/inclure/gamumail_config.html @@ -67,23 +67,24 @@
Si plusieurs emails, les séparer par une virgule. Double clic pour éditer.
+<:gamumail:plusieurs_mails_separer_virgule:> <:gamumail:dbe_clic_editer:>.
Si plusieurs emails, les séparer par une virgule. Double clic pour éditer.
+<:gamumail:plusieurs_mails_separer_virgule:> <:gamumail:dbe_clic_editer:>.