From 446224aa18d383294d256ab79d1fa1ee63a14b11 Mon Sep 17 00:00:00 2001 From: Olu Date: Fri, 4 Mar 2022 17:35:03 +0100 Subject: [PATCH] Fixed routes --- src/MessengerTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MessengerTemplate.php b/src/MessengerTemplate.php index 8c6bbcb..b0adee8 100644 --- a/src/MessengerTemplate.php +++ b/src/MessengerTemplate.php @@ -15,7 +15,7 @@ public function __construct($template_file, $messenger){ if($template_file != null){ //load the template file to use for sending the message - $template_file = "templates/{$template_file}"; + $template_file = __DIR__."/templates/{$template_file}"; if(file_exists($template_file)){ $template_content = file_get_contents($template_file);