From ced709bbf9e414bec6c7c2e662145f39b2f12e67 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 5 Jan 2021 10:52:23 +0100 Subject: [PATCH] Auto create the data/viewcache folder if it doesn't exist (however) --- app.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.php b/app.php index 2a586885..5265112f 100644 --- a/app.php +++ b/app.php @@ -42,6 +42,12 @@ catch (EInvalidConfig $ex) exit('Invalid setting in config.php: ' . $ex->getMessage()); } +// Create data/viewcache folder if it doesn't exist +if (!file_exists(GROCY_DATAPATH . '/viewcache')) +{ + mkdir(GROCY_DATAPATH . '/viewcache'); +} + // Setup base application AppFactory::setContainer(new DI\Container()); $app = AppFactory::create();