From b41fa03aca6a3fb760e7bad8949f20fef3382bb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 23 Jun 2010 11:35:06 +0200 Subject: [PATCH] Fixes email sent from xnet. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/xnetgrp/mail.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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); -- 2.1.4