Fix emails on payment return
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 18 Oct 2007 09:42:05 +0000 (11:42 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 18 Oct 2007 09:42:22 +0000 (11:42 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/payment.php

index ca19fb2..7835f44 100644 (file)
@@ -228,6 +228,7 @@ class PaymentModule extends PLModule
         $conf_text = str_replace("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
         $conf_text = str_replace("<cher>",$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("<salutation>",$femme ? "Chère" : "Cher",$conf_text);
         $conf_text = str_replace("<cher>",$femme ? "Chère" : "Cher",$conf_text);
 
+        global $globals;
         $mymail = new PlMailer();
         $mymail->setFrom($conf_mail);
         $mymail->addTo("\"$prenom $nom\" <$forlife@" . $globals->mail->domain . '>');