From be5ed19c1308b81c8daf57a767fd5b96af2a0f8f Mon Sep 17 00:00:00 2001 From: Avior Date: Fri, 26 Apr 2019 10:31:50 +0200 Subject: [PATCH] Fixed Cache folder not made in the correct place --- src/DeltaCMS/DeltaCMS.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DeltaCMS/DeltaCMS.php b/src/DeltaCMS/DeltaCMS.php index 6c93b1d..6cb67d1 100644 --- a/src/DeltaCMS/DeltaCMS.php +++ b/src/DeltaCMS/DeltaCMS.php @@ -37,6 +37,7 @@ class DeltaCMS $ap = self::$instance = new self(); $ap->root = dirname(__DIR__); $ap->settings = jsonc_decode(dirname($ap->root) . "/config.jsonc", false); + $ap->settings->cache->path = dirname($ap->root) . DIRECTORY_SEPARATOR . $ap->settings->cache->path; $ap->loader = new FilesystemLoader(); $ap->addLoaderFolder($ap->root . "/DeltaCMS/Twig"); // $ap->setLoader(new FilesystemLoader()); @@ -64,7 +65,7 @@ class DeltaCMS public function getTwig() { return isset($this->twig) ? $this->twig : $this->twig = new Environment($this->loader, [ - 'cache' => $this->isCacheEnabled() ? dirname($this->root) . $this->settings->cache->path . '/twig/' : false + 'cache' => $this->isCacheEnabled() ? $this->settings->cache->path . '/twig/' : false ]); }