From 4595d3e2454b14daa53b08a0bc053c01557ddb13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 26 Oct 2010 10:56:16 +0200 Subject: [PATCH] Fixes empty moderator name in validation email (Closes #1293). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/lists.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'); } -- 2.1.4