From 7eb74b3b12ca78eed57ea0cdc3cc80c7d1107c6c Mon Sep 17 00:00:00 2001 From: rub Date: Fri, 8 Dec 2006 06:05:01 +0000 Subject: Feature Issue ID 0000598: Possibility to send HTML mail Fixed: $template_mail created only when it's necessary git-svn-id: http://piwigo.org/svn/trunk@1644 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_mail.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/functions_mail.inc.php') diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 146e06bb1..4596d3ef9 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -147,12 +147,13 @@ function pwg_mail($to, $from = '', $subject = 'PhpWebGallery', $infos = '', $for } list($tmpl, $thm) = explode('/', $conf['default_template']); - $template_mail = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm); $content = ''; if ($email_format == 'text/html') { + $template_mail = new Template(PHPWG_ROOT_PATH.'template/'.$tmpl, $thm); + $template_mail->set_filenames(array('mail_header'=>'mail/header.tpl')); $template_mail->assign_vars( -- cgit v1.2.3