Adds brief summary of account details in registration email warning.
authorStéphane Jacob <sj@m4x.org>
Wed, 26 Oct 2011 11:35:08 +0000 (13:35 +0200)
committerStéphane Jacob <sj@m4x.org>
Wed, 26 Oct 2011 11:50:08 +0000 (13:50 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/register.php

index 9cd2cae..fd9bdd3 100644 (file)
@@ -276,7 +276,9 @@ class RegisterModule extends PLModule
 
         $_SESSION['subState'] = $subState->dict();
         if (count($alert)) {
-            $alert_details = "Détails des alertes :" . $alert_details . "\n\n\n";
+            $alert_details = "Détails des alertes :" . $alert_details . "\n\n";
+            $alert_details .= 'Compte concerné : ' . $subState->s('forlife') . ' (redirection vers : '
+                           . ($subState->s('email') == '' ? Post::t('email') : $subState->s('email')). ")\n\n\n";
             send_warning_mail(implode(' - ', $alert), $alert_details);
         }