From: Thomas Minvielle Date: Wed, 10 Jul 2013 13:03:23 +0000 (+0200) Subject: Improvement. X-Git-Tag: xorg/1.1.9~20 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=54cc972bf3f65cac3dbe4311635efa9c6f95ff65;p=platal.git Improvement. --- diff --git a/modules/email.php b/modules/email.php index e5f702d..6402337 100644 --- a/modules/email.php +++ b/modules/email.php @@ -661,6 +661,9 @@ class EmailModule extends PLModule if ($uid) { $dest = User::getWithUID($uid); + $active = XDB::fetchOneCell('SELECT flags + FROM email_redirect_account + WHERE redirect = {?} AND uid = {?}', $email, $uid) == 'active'; $mail = new PlMailer('emails/broken-web.mail.tpl'); $mail->assign('email', $email); diff --git a/templates/emails/broken.tpl b/templates/emails/broken.tpl index bf3f2f9..0d41f84 100644 --- a/templates/emails/broken.tpl +++ b/templates/emails/broken.tpl @@ -32,7 +32,7 @@ Tu as entré une adresse sur un de nos domaines ({#globals.mail.domain#}, {#glob En effet, il faut nous donner l'adresse qui se cache derrière l'adresse polytechnicienne de ton correspondant si tu veux que nous puissions te répondre.

-{elseif t($user) && $user.nb_mails} +{elseif t($user) && $user.nb_mails && $active}

Patte cassée

Ton correspondant a à l'heure actuelle {$user.nb_mails} adresse(s) email(s) de redirection active(s)