From: Stéphane Jacob Date: Thu, 12 Nov 2009 13:05:49 +0000 (+0100) Subject: Allows ';' as delimiters to send emails. X-Git-Tag: xorg/0.10.2~3 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=3c7b9bad27569f0f5575997f0fd3646dbaafc70e;hp=9c9cbbbf8bfb9b841e024787f483114fdbb66b7c;p=platal.git Allows ';' as delimiters to send emails. --- diff --git a/modules/email.php b/modules/email.php index 7e35616..272756f 100644 --- a/modules/email.php +++ b/modules/email.php @@ -418,11 +418,11 @@ class EmailModule extends PLModule $to2 = getEmails(Env::v('to_contacts')); $cc2 = getEmails(Env::v('cc_contacts')); $txt = str_replace('^M', '', Env::v('contenu')); - $to = Env::v('to'); - $subj = Env::v('sujet'); - $from = Env::v('from'); - $cc = trim(Env::v('cc')); - $bcc = trim(Env::v('bcc')); + $to = str_replace(';', ',', Env::t('to')); + $subj = Env::t('sujet'); + $from = Env::t('from'); + $cc = str_replace(';', ',', Env::t('cc')); + $bcc = str_replace(';', ',', Env::t('bcc')); if (empty($to) && empty($cc) && empty($to2) && empty($bcc) && empty($cc2)) { $page->trigError("Indique au moins un destinataire.");