X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fml.inc.php;h=bf7be94103f1d9568c77af22781ee1f2a7043687;hb=e3a55098b1cfd274d8965fc307a316d9f0c447a1;hp=1a5413f4e94946cf3044878e2f0a002466714cda;hpb=2fdafb32e2bceee23bf305a63c18bd320622d166;p=platal.git diff --git a/include/banana/ml.inc.php b/include/banana/ml.inc.php index 1a5413f..bf7be94 100644 --- a/include/banana/ml.inc.php +++ b/include/banana/ml.inc.php @@ -46,7 +46,7 @@ class MLBanana extends Banana static public $listname; static public $domain; - function __construct($forlife, $params = null) + function __construct(User &$user, $params = null) { global $globals; Banana::$spool_root = $globals->banana->spool_root; @@ -75,9 +75,9 @@ class MLBanana extends Banana global $platal, $globals; $nom = S::v('prenom') . ' ' . S::v('nom'); - $mail = S::v('bestalias') . '@' . $globals->mail->domain; + $mail = $user->bestEmail(); $sig = $nom . ' (' . S::v('promo') . ')'; - Banana::$msgedit_headers['X-Org-Mail'] = S::v('forlife') . '@' . $globals->mail->domain; + Banana::$msgedit_headers['X-Org-Mail'] = $user->forlifeEmail(); // Build user profile Banana::$profile['headers']['From'] = "$nom <$mail>";