Navigation Menu

Skip to content

Commit

Permalink
Feature Issue ID 0000598:
Browse files Browse the repository at this point in the history
  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
  • Loading branch information
rub committed Dec 8, 2006
1 parent 7325369 commit 7eb74b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/functions_mail.inc.php
Expand Up @@ -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(
Expand Down

0 comments on commit 7eb74b3

Please sign in to comment.