X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fxnetgrp%2Fmail.inc.php;h=891146a6270fa0866b5036dfe73a366ec79988a2;hb=830652769f5e756edb7239dc048a0d52c893d348;hp=a38aa533e3c56a5eac970a3b366ec945c61e44d5;hpb=00ca0ad5370df5be4a0272364fb16a4385ffabfe;p=platal.git diff --git a/modules/xnetgrp/mail.inc.php b/modules/xnetgrp/mail.inc.php index a38aa53..891146a 100644 --- a/modules/xnetgrp/mail.inc.php +++ b/modules/xnetgrp/mail.inc.php @@ -56,17 +56,17 @@ function get_all_redirects($membres, $mls, &$client) function _send_xnet_mail($user, $body, $wiki, $mailer, $replyto = null) { if ($user instanceof PlUser) { - $cher = $user->isFemale() ? 'Chère' : 'Cher'; - $nom = $user->displayName(); - $pnom = ''; + $dear = $user->isFemale() ? 'Chère' : 'Cher'; + $lastname = $user->lastName(); + $firstname = $user->firstName(); } else { - $cher = 'Cher(e)'; - $nom = $user; - $pnom = ''; + $dear = 'Cher(e)'; + $lastname = ''; + $firstname = $user; } $text = str_ireplace(array('', '', ''), - array($cher, $nom, $pnom), $body); + array($dear, $lastname, $firstname), $body); $mailer->addTo($user); if ($replyto) { $mailer->addHeader('Reply-To', $replyto);