Fix unsubscription mail.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 17 Mar 2008 14:57:34 +0000 (15:57 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 17 Mar 2008 14:57:43 +0000 (15:57 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/admin.php
templates/admin/useredit.mail.tpl

index 9eb2a64..01878a7 100644 (file)
@@ -609,7 +609,7 @@ class AdminModule extends PLModule
                         $page->trig("'{$mr['user_id']}' a été désinscrit !");
                         $mailer = new PlMailer("admin/useredit.mail.tpl");
                         $mailer->assign("user", S::v('forlife'));
-                        $mailer->assign("query", "\nUtilisateur $login désinscrit");
+                        $mailer->assign("deletion", true);
                         $mailer->send();
                         break;
                 }
index 2b737d6..b1d394f 100644 (file)
@@ -26,6 +26,9 @@
 {to addr=#to#}
 {subject text="INTERVENTION de $user"}
 {elseif $mail_part eq 'wiki'}
+{if $deletion}
+L'utilisateur {$user} a été désinscrit.
+{else}
 Le profil du camarade {$old.prenom} {$old.nom} ({$old.promo}) a été édité.\\
 Les champs suivants ont été changés :
 {foreach from=$old item=value key=field}
@@ -41,5 +44,6 @@ Et ceux qui n'ont pas changé :
 {/if}
 {/foreach}
 {/if}
+{/if}
 
 {* vim:set et sw=2 sts=2 sws=2: *}