Fixes empty moderator name in validation email (Closes #1293).
authorStéphane Jacob <sj@m4x.org>
Tue, 26 Oct 2010 08:56:16 +0000 (10:56 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 26 Oct 2010 09:04:37 +0000 (11:04 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/lists.php

index 1c93980..5587714 100644 (file)
@@ -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');
                 }