X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fmarketing.inc.php;h=69156063bd3732be45e79df3c2ebb0cd694006c7;hb=6859200d482b72f9dc6483a3c27621d6e945736d;hp=92611749e363d7364dbe41e822920c5d4693522d;hpb=020a95fa78dc544b3064739d409026a0056d98f4;p=platal.git diff --git a/include/validations/marketing.inc.php b/include/validations/marketing.inc.php index 9261174..6915606 100644 --- a/include/validations/marketing.inc.php +++ b/include/validations/marketing.inc.php @@ -40,7 +40,7 @@ class MarkReq extends Validate // }}} // {{{ constructor - public function __construct(User &$sender, User &$mark, $email, $perso, $type, $data, $personal_notes) + public function __construct(User $sender, User $mark, $email, $perso, $type, $data, $personal_notes) { parent::__construct($sender, false, 'marketing'); $this->m_user = &$mark; @@ -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()}).";