From: Stéphane Jacob Date: Tue, 26 Oct 2010 08:56:16 +0000 (+0200) Subject: Fixes empty moderator name in validation email (Closes #1293). X-Git-Tag: xorg/1.0.1~4 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4595d3e2454b14daa53b08a0bc053c01557ddb13;p=platal.git Fixes empty moderator name in validation email (Closes #1293). Signed-off-by: Stéphane Jacob --- diff --git a/modules/lists.php b/modules/lists.php index 1c93980..5587714 100644 --- a/modules/lists.php +++ b/modules/lists.php @@ -512,8 +512,7 @@ class ListsModule extends PLModule $mailer->addTo("$liste-owner@{$domain}"); $mailer->addHeader('Reply-To', "$liste-owner@{$domain}"); $mailer->setSubject("L'inscription de {$sub['name']} a été $info"); - $text = "L'inscription de {$sub['name']} à la liste $liste@{$domain} a été $info par " . S::v('prenom') . ' ' - . S::v('nom') . '(' . S::v('promo') . ")\n"; + $text = "L'inscription de {$sub['name']} à la liste $liste@{$domain} a été $info par " . S::user()->fullName(true) . ".\n"; if (trim(Post::v('reason'))) { $text .= "\nLa raison invoquée est :\n" . Post::v('reason'); }