X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fmarketing.php;h=b8784783d9ac2eb8e42320ffb2ab12cdf1deee3c;hb=ed92ea696e042eb9b2d0efcc4731fdf89fb17924;hp=aad71640655f3254d956d3db8f46536f7c2199cd;hpb=20eca0a987511ea8cfdc57c2e4cb7d00e23002d8;p=platal.git diff --git a/modules/marketing.php b/modules/marketing.php index aad7164..b878478 100644 --- a/modules/marketing.php +++ b/modules/marketing.php @@ -313,6 +313,7 @@ class MarketingModule extends PLModule require_once 'marketing.inc.php'; $sender = User::getSilent(S::v('uid')); + $perso_signature = 'Cordialement,
--
' . $sender->fullName(); $market = new AnnuaireMarketing(null, true); $text = $market->getText(array( 'sexe' => $user->isFemale(), @@ -322,11 +323,10 @@ class MarketingModule extends PLModule $text = str_replace('%%hash%%', '', $text); $text = str_replace('%%personal_notes%%', '', $text); $text = str_replace('%%sender%%', - "" . $sender->fullName() . '', $text); + '' . $perso_signature . '', $text); $page->assign('text', nl2br($text)); - // TODO (JAC): define a unique Xorg signature for all the emails we send. - $page->assign('xorg_signature', "L'équipe de Polytechnique.org,
Le portail des élèves & anciens élèves de l'École polytechnique"); - $page->assign('perso_signature', $sender->fullName()); + $page->assign('perso_signature', $perso_signature); + $page->assign('mail_part', 'escaped_html'); } }