Ensure some cache folders & index.html exists

This commit is contained in:
slawkens
2025-11-02 12:21:29 +01:00
parent fd729242ff
commit 730a0f2912
5 changed files with 29 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ use MyAAC\Settings;
defined('MYAAC') or die('Direct access not allowed!');
ensureIndexExists(CACHE);
ensureIndexExists(CACHE . 'twig/');
global $config;
if(!isset($config['installed']) || !$config['installed']) {
throw new RuntimeException('MyAAC has not been installed yet or there was error during installation. Please install again.');