From 7895f3c1924ee2f082250c1b6e67379f9cb25259 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 18 Oct 2007 11:42:05 +0200 Subject: [PATCH] Fix emails on payment return Signed-off-by: Florent Bruneau --- modules/payment.php | 2 ++ 1 file changed, 2 insertions(+) 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 . '>'); -- 2.1.4