mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 00:42:20 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user