Fixes comments in paypal payments.
authorStéphane Jacob <sj@m4x.org>
Mon, 7 Mar 2011 13:56:54 +0000 (14:56 +0100)
committerStéphane Jacob <sj@m4x.org>
Mon, 7 Mar 2011 13:56:54 +0000 (14:56 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/payment.php

index 0005e13..08cd05d 100644 (file)
@@ -446,10 +446,10 @@ class PaymentModule extends PLModule
         }
 
         /* on genere le mail de confirmation */
-        $conf_text = str_replace(array('<prenom>', '<nom>', '<promo>', '<montant>', '<salutation>', '<cher>'),
+        $conf_text = str_replace(array('<prenom>', '<nom>', '<promo>', '<montant>', '<salutation>', '<cher>', '<comment>'),
                                  array($user->firstName(), $user->lastName(), $user->promo(), $montant,
-                                       $user->isFemale() ? 'Chère' : 'Cher',
-                                       $user->isFemale() ? 'Chère' : 'Cher'), $conf_text);
+                                       $user->isFemale() ? 'Chère' : 'Cher', $user->isFemale() ? 'Chère' : 'Cher',
+                                       Env::v('comment')), $conf_text);
 
         global $globals;
         $mymail = new PlMailer();