aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_mail.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-08 06:05:01 +0000
committerrub <rub@piwigo.org>2006-12-08 06:05:01 +0000
commit7eb74b3b12ca78eed57ea0cdc3cc80c7d1107c6c (patch)
tree064e88e06e4f0934ee0d4f2142431fb82f9e0b19 /include/functions_mail.inc.php
parent7325369bf5f7ea3f3f50d0f716b9ddf417767623 (diff)
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
Diffstat (limited to '')
-rw-r--r--include/functions_mail.inc.php3
1 files changed, 2 insertions, 1 deletions
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(