mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 15:54:43 +02:00
Email admin->notify template working with new template standard.
This commit is contained in:
@@ -606,7 +606,7 @@ class e107Email extends PHPMailer
|
||||
{
|
||||
|
||||
|
||||
if($tmpl = e107::getCoreTemplate('email', $eml['template'], true, true)) // $EMAIL_TEMPLATE['default']
|
||||
if($tmpl = e107::getCoreTemplate('email', $eml['template'], true, true)) //FIXME - Core template is failing with template 'notify'. Works with theme template. Issue with core template registry?
|
||||
{
|
||||
// $filter = array("\n", "\t");
|
||||
// $tmpl['header'] = str_replace($filter,'', $tmpl['header']);
|
||||
@@ -623,6 +623,7 @@ class e107Email extends PHPMailer
|
||||
|
||||
if($this->debug)
|
||||
{
|
||||
echo "<h4>e107Email::arraySet() - line ".__LINE__."</h4>";
|
||||
print_a($tmpl);
|
||||
}
|
||||
|
||||
@@ -630,6 +631,15 @@ class e107Email extends PHPMailer
|
||||
|
||||
$this->Subject = $tp->parseTemplate($tmpl['subject'], true, varset($eml['shortcodes'],null));
|
||||
}
|
||||
else
|
||||
{
|
||||
if($this->debug)
|
||||
{
|
||||
echo "<h4>Couldn't find email template: ".$eml['template']."</h4>";
|
||||
}
|
||||
if (vartrue($eml['email_subject'])) $this->Subject = $tp->parseTemplate($eml['email_subject'], true, varset($eml['shortcodes'],null));
|
||||
e107::getMessage()->addDebug("Couldn't find email template: ".$eml['template']);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
@@ -658,12 +668,11 @@ class e107Email extends PHPMailer
|
||||
|
||||
if($this->debug)
|
||||
{
|
||||
echo "<h4>e107Email::arraySet() - line ".__LINE__."</h4>";
|
||||
print_a($eml);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (vartrue($eml['returnreceipt'])) $this->ConfirmReadingTo = $eml['returnreceipt'];
|
||||
if (vartrue($eml['email_inline_images'])) $this->addInlineImages($eml['email_inline_images']);
|
||||
if (vartrue($eml['email_priority'])) $this->Priority = $eml['email_priority'];
|
||||
|
Reference in New Issue
Block a user