X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fmarketing.inc.php;h=69156063bd3732be45e79df3c2ebb0cd694006c7;hb=6859200d482b72f9dc6483a3c27621d6e945736d;hp=9154526400052e42bd8b8474f8ae89fdcbeaa1c0;hpb=26ba053e75092d038f571b77eaf3005509da0648;p=platal.git diff --git a/include/validations/marketing.inc.php b/include/validations/marketing.inc.php index 9154526..6915606 100644 --- a/include/validations/marketing.inc.php +++ b/include/validations/marketing.inc.php @@ -79,12 +79,14 @@ class MarkReq extends Validate protected function _mail_body($isok) { + $your1 = ($this->formal ? 'votre' : 'ton'); + $your2 = ($this->formal ? 'votre' : 'ta'); if ($isok) { return " Un email de marketing vient d'être envoyé " - . ($this->perso ? 'en ton nom' : 'en notre nom') + . ($this->perso ? "en $your1 nom" : 'en notre nom') . " à {$this->m_user->fullName()} ({$this->m_user->promo()}) " . "pour l'encourager à s'inscrire !\n\n" - . "Merci de ta participation !\n"; + . "Merci de $your2 participation !\n"; } else { return " Nous n'avons pas jugé bon d'envoyer d'email de marketing à " . "{$this->m_user->fullName()} ({$this->m_user->promo()}).";