diff options
Diffstat (limited to 'include/functions_mail.inc.php')
-rw-r--r-- | include/functions_mail.inc.php | 3 |
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(
|