Skip to content

Commit

Permalink
Auto create the data/viewcache folder if it doesn't exist (however)
Browse files Browse the repository at this point in the history
  • Loading branch information
berrnd committed Jan 5, 2021
1 parent 4a8d412 commit ced709b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app.php
Expand Up @@ -42,6 +42,12 @@
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();
Expand Down

0 comments on commit ced709b

Please sign in to comment.