Skip to content

Commit

Permalink
Fix for missing location when rendering a template
Browse files Browse the repository at this point in the history
  • Loading branch information
andrevanzuydam committed Dec 7, 2024
1 parent a91df5f commit 86726b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tina4/Routing/ParseTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ final public function parseFile(string $fileName)
$testFile = ($location . DIRECTORY_SEPARATOR . $parseFileName);
} else {
$testFile = ($this->root . $location . DIRECTORY_SEPARATOR . $parseFileName);
$location = $this->root . $location . DIRECTORY_SEPARATOR;
}

$testFile = preg_replace('#/+#', DIRECTORY_SEPARATOR, $testFile);
Expand Down

0 comments on commit 86726b2

Please sign in to comment.