Display user salutation for axletter preview
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 22 Jun 2010 21:35:40 +0000 (23:35 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 22 Jun 2010 22:00:38 +0000 (00:00 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
modules/axletter.php

index 984fe34..939b631 100644 (file)
@@ -180,7 +180,7 @@ class AXLetterModule extends PLModule
                 $this->load('axletter.inc.php');
                 $al = new AXLetter(array($id, $short_name, $subject, $title, $body, $signature,
                                          $promo_min, $promo_max, $subset, $subset_rm, $echeance, 0, 'new'));
-                $al->toHtml($page, S::v('prenom'), S::v('nom'), S::v('femme'));
+                $al->toHtml($page, S::user());
                 break;
 
               case 'Confirmer':