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
This commit is contained in:
rub
2006-12-08 06:05:01 +00:00
parent 7325369bf5
commit 7eb74b3b12
+2 -1
View File
@@ -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(