projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prevents impossible grad years to be stored.
[platal.git]
/
modules
/
xnetgrp
/
mail.inc.php
diff --git
a/modules/xnetgrp/mail.inc.php
b/modules/xnetgrp/mail.inc.php
index
a38aa53
..
891146a
100644
(file)
--- 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) {
function _send_xnet_mail($user, $body, $wiki, $mailer, $replyto = null)
{
if ($user instanceof PlUser) {
- $
cher
= $user->isFemale() ? 'Chère' : 'Cher';
- $
nom = $user->display
Name();
- $
pnom = ''
;
+ $
dear
= $user->isFemale() ? 'Chère' : 'Cher';
+ $
lastname = $user->last
Name();
+ $
firstname = $user->firstName()
;
} else {
} else {
- $
cher
= 'Cher(e)';
- $
nom = $user
;
- $
pnom = ''
;
+ $
dear
= 'Cher(e)';
+ $
lastname = ''
;
+ $
firstname = $user
;
}
$text = str_ireplace(array('<cher>', '<nom>', '<prenom>'),
}
$text = str_ireplace(array('<cher>', '<nom>', '<prenom>'),
- array($
cher, $nom, $pnom
), $body);
+ array($
dear, $lastname, $firstname
), $body);
$mailer->addTo($user);
if ($replyto) {
$mailer->addHeader('Reply-To', $replyto);
$mailer->addTo($user);
if ($replyto) {
$mailer->addHeader('Reply-To', $replyto);