Fix case sensitivity in invoice template file paths
This commit is contained in:
parent
d372bf4711
commit
c45e19189a
@ -11,9 +11,9 @@ class Invoice
|
||||
throw new Exception("Invoice ID is required");
|
||||
}
|
||||
|
||||
$templatePath = 'pages/custom_invoice.html';
|
||||
$templatePath = 'pages/Custom_Invoice.html';
|
||||
if (!file_exists($templatePath)) {
|
||||
$templatePath = 'pages/default_invoice.html';
|
||||
$templatePath = 'pages/Default_Invoice.html';
|
||||
}
|
||||
|
||||
$template = file_get_contents($templatePath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user