From 402a0780f42b948525fbef6db2e3c1bfe59b883d Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 15 Nov 2008 10:47:11 +0100 Subject: [PATCH] Globals available in mail templates. Signed-off-by: Florent Bruneau --- classes/plmailer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/plmailer.php b/classes/plmailer.php index 2ac4184..ca85633 100644 --- a/classes/plmailer.php +++ b/classes/plmailer.php @@ -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) { -- 2.1.4