asdad
This commit is contained in:
@@ -39,7 +39,7 @@ final class Mailer
|
|||||||
$emailtemplates = [];
|
$emailtemplates = [];
|
||||||
if (is_file($file)) {
|
if (is_file($file)) {
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$emailtemplates = include $file;
|
include $file; // populates $emailtemplates variable from included file
|
||||||
}
|
}
|
||||||
return is_array($emailtemplates ?? null) ? $emailtemplates : [];
|
return is_array($emailtemplates ?? null) ? $emailtemplates : [];
|
||||||
}
|
}
|
||||||
@@ -48,6 +48,7 @@ final class Mailer
|
|||||||
{
|
{
|
||||||
$templates = $this->templates();
|
$templates = $this->templates();
|
||||||
$id = $templates[$key] ?? $key;
|
$id = $templates[$key] ?? $key;
|
||||||
|
$this->log('template_resolved_id', ['key' => $key, 'id' => $id]);
|
||||||
|
|
||||||
$apiBase = getenv('EMAILTEMPLATE_API_BASE') ?: '';
|
$apiBase = getenv('EMAILTEMPLATE_API_BASE') ?: '';
|
||||||
$apiToken = getenv('EMAILTEMPLATE_API_TOKEN') ?: '';
|
$apiToken = getenv('EMAILTEMPLATE_API_TOKEN') ?: '';
|
||||||
|
|||||||
Reference in New Issue
Block a user