From 89b1749bbf23c5eaf8d4178596451dbf573764ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Tue, 6 Dec 2022 10:52:04 +0100 Subject: [PATCH] refactor(TemplateEngine): use wiki::getLocalPath --- includes/services/TemplateEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ]);