diff --git a/includes/services/TemplateEngine.php b/includes/services/TemplateEngine.php index 8bd66d339..b812f7132 100644 --- a/includes/services/TemplateEngine.php +++ b/includes/services/TemplateEngine.php @@ -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 ]);