Globals available in mail templates.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 15 Nov 2008 09:47:11 +0000 (10:47 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 15 Nov 2008 09:47:11 +0000 (10:47 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plmailer.php

index 2ac4184..ca85633 100644 (file)
@@ -283,6 +283,7 @@ class PlMailer extends Mail_Mime {
             if (!($globals->debug & DEBUG_SMARTY)) {
                 $level = error_reporting(0);
             }
+            $this->page->assign_by_ref('globals', $globals);
             $this->page->run('head'); // process page headers
             $this->wiki = trim($this->page->run('wiki')); // get wiki
             if (!$this->wiki) {