From 22b74ef5ac61c5e3fac4233922b0f1633cdd6594 Mon Sep 17 00:00:00 2001 From: George Dawoud Date: Sat, 7 Dec 2024 10:42:09 -0800 Subject: [PATCH] makes sure the path works for API and PHP code --- src/ChurchCRM/Emails/BaseEmail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChurchCRM/Emails/BaseEmail.php b/src/ChurchCRM/Emails/BaseEmail.php index 2fca5d2fd9..a1935fcc2f 100644 --- a/src/ChurchCRM/Emails/BaseEmail.php +++ b/src/ChurchCRM/Emails/BaseEmail.php @@ -26,7 +26,7 @@ public function __construct(array $toAddresses) $this->mail->addAddress($email); } - $loader = new FilesystemLoader('templates/email'); + $loader = new FilesystemLoader(dirname(__FILE__) . '/../../templates/email'); $this->twig = new Environment($loader); }