Skip to content

Commit

Permalink
makes sure the path works for API and PHP code
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudIO committed Dec 7, 2024
1 parent 07b31a2 commit 22b74ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ChurchCRM/Emails/BaseEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 22b74ef

Please sign in to comment.