From a99ff1fc9dfc6faae70b71ad440bc21ebcbbbd4c Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 28 Jan 2008 21:16:09 +0100 Subject: [PATCH] Do not forget to assign $globals in mail templates. Signed-off-by: Florent Bruneau --- classes/plmailer.php | 1 + templates/emails/broken.mail.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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. -- 2.1.4