1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 15:47:32 +02:00

fix: case-insensitive config from env, fix #2935 (#2973)

* refactor

* fix: case-sensitive config from env, fix #2935

* lowercase all config section and keys

* test: add test for case-insensitivity
This commit is contained in:
Dag
2022-08-23 21:19:53 +02:00
committed by GitHub
parent edbafc6144
commit 5165ea265d
10 changed files with 78 additions and 161 deletions

View File

@@ -50,7 +50,7 @@ final class BridgeCard
];
}
if (CUSTOM_CACHE_TIMEOUT) {
if (Configuration::getConfig('cache', 'custom_timeout')) {
$parameters['global']['_cache_timeout'] = [
'name' => 'Cache timeout in seconds',
'type' => 'number',