Skip to content

Commit

Permalink
refactor(TemplateEngine): use wiki::getLocalPath
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem committed Sep 15, 2023
1 parent 3ca1c5e commit 89b1749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/services/TemplateEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct(

// Set up twig
$this->twig = new \Twig\Environment($this->twigLoader, [
'cache' => $this->wiki->getDataPath().'cache/templates/',
'cache' => "{$this->wiki->getLocalPath('cache')}/templates/",
'auto_reload' => true
]);

Expand Down

0 comments on commit 89b1749

Please sign in to comment.