mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-15 00:14:45 +02:00
fix: bug in cache-prune (#3933)
fixes Uncaught Exception: No cache type configured
This commit is contained in:
parent
e58c867a82
commit
0e3a79fd78
2 changed files with 6 additions and 6 deletions
|
@ -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'));
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue