Do not forget to assign $globals in mail templates.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 28 Jan 2008 20:16:09 +0000 (21:16 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 28 Jan 2008 20:16:09 +0000 (21:16 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plmailer.php
templates/emails/broken.mail.tpl

index f7a913c..6b6fd0d 100644 (file)
@@ -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)
index 13e16f1..de28765 100644 (file)
@@ -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.