From 0e3a79fd78c205a48c1ef16a8ff6f175e59d1059 Mon Sep 17 00:00:00 2001 From: Dag Date: Fri, 26 Jan 2024 21:44:34 +0100 Subject: [PATCH] fix: bug in cache-prune (#3933) fixes Uncaught Exception: No cache type configured --- index.php | 6 ------ lib/bootstrap.php | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 029b673c..56a94ac6 100644 --- a/index.php +++ b/index.php @@ -57,12 +57,6 @@ if ($errors) { exit; } -$customConfig = []; -if (file_exists(__DIR__ . '/config.ini.php')) { - $customConfig = parse_ini_file(__DIR__ . '/config.ini.php', true, INI_SCANNER_TYPED); -} -Configuration::loadConfiguration($customConfig, getenv()); - // Consider: ini_set('error_reporting', E_ALL & ~E_DEPRECATED); date_default_timezone_set(Configuration::getConfig('system', 'timezone')); diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 48db871c..f1d82c4c 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -41,3 +41,9 @@ spl_autoload_register(function ($className) { } } }); + +$customConfig = []; +if (file_exists(__DIR__ . '/config.ini.php')) { + $customConfig = parse_ini_file(__DIR__ . '/config.ini.php', true, INI_SCANNER_TYPED); +} +Configuration::loadConfiguration($customConfig, getenv());