From: Florent Bruneau Date: Thu, 18 Oct 2007 09:42:05 +0000 (+0200) Subject: Fix emails on payment return X-Git-Tag: xorg/0.9.16~272 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7895f3c1924ee2f082250c1b6e67379f9cb25259;p=platal.git Fix emails on payment return Signed-off-by: Florent Bruneau --- diff --git a/modules/payment.php b/modules/payment.php index ca19fb2..7835f44 100644 --- a/modules/payment.php +++ b/modules/payment.php @@ -228,6 +228,7 @@ class PaymentModule extends PLModule $conf_text = str_replace("",$femme ? "Chère" : "Cher",$conf_text); $conf_text = str_replace("",$femme ? "Chère" : "Cher",$conf_text); + global $globals; $mymail = new PlMailer(); $mymail->setFrom($conf_mail); $mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>'); @@ -317,6 +318,7 @@ class PaymentModule extends PLModule $conf_text = str_replace("",$femme ? "Chère" : "Cher",$conf_text); $conf_text = str_replace("",$femme ? "Chère" : "Cher",$conf_text); + global $globals; $mymail = new PlMailer(); $mymail->setFrom($conf_mail); $mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>');