X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fmarketing.inc.php;h=69156063bd3732be45e79df3c2ebb0cd694006c7;hb=85b2b2257110a8c77d70624f0fa9bba402d99e5f;hp=3d724d55f59bc77a7f1dd02469dae1498115929d;hpb=b00527ff4a4883f2bd8bdfcceb6d4123f19ef785;p=platal.git diff --git a/include/validations/marketing.inc.php b/include/validations/marketing.inc.php index 3d724d5..6915606 100644 --- a/include/validations/marketing.inc.php +++ b/include/validations/marketing.inc.php @@ -1,6 +1,6 @@ m_user = &$mark; @@ -47,6 +48,7 @@ class MarkReq extends Validate $this->perso = $perso; $this->m_type = $type; $this->m_data = $data; + $this->m_personal_notes = $personal_notes; } // }}} @@ -77,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()}).";