From: Florent Bruneau Date: Mon, 28 Jan 2008 20:16:09 +0000 (+0100) Subject: Do not forget to assign $globals in mail templates. X-Git-Tag: xorg/0.9.16~160 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a99ff1fc9dfc6faae70b71ad440bc21ebcbbbd4c;p=platal.git Do not forget to assign $globals in mail templates. Signed-off-by: Florent Bruneau --- diff --git a/classes/plmailer.php b/classes/plmailer.php index f7a913c..6b6fd0d 100644 --- a/classes/plmailer.php +++ b/classes/plmailer.php @@ -47,6 +47,7 @@ class PlMail extends Smarty $this->register_function('bcc', Array($this, 'addBcc')); $this->register_function('subject', Array($this, 'setSubject')); $this->register_function('add_header', Array($this, 'addHeader')); + $this->assign_by_ref('globals', $globals); } public static function &get(&$mailer, $tpl) diff --git a/templates/emails/broken.mail.tpl b/templates/emails/broken.mail.tpl index 13e16f1..de28765 100644 --- a/templates/emails/broken.mail.tpl +++ b/templates/emails/broken.mail.tpl @@ -30,7 +30,7 @@ Bonjour ! Nous t'écrivons car lors de l'envoi de la lettre d'information mensuelle de Polytechnique.org à ton adresse polytechnicienne : - {$x.alias}@{#globals.mail.domain#}, + {$x.alias}@{$globals->mail->domain}, l'adresse {$email}, sur laquelle tu rediriges ton courrier, ne fonctionnait pas.