aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2024-01-26 21:44:34 +0100
committerGravatar GitHub <noreply@github.com> 2024-01-26 21:44:34 +0100
commit0e3a79fd78c205a48c1ef16a8ff6f175e59d1059 (patch)
tree396a8c3bb4cac85e685457bc2a59bba624653230 /lib
parente58c867a82f4c884eaeda93519ed8464d052837c (diff)
downloadrss-bridge-0e3a79fd78c205a48c1ef16a8ff6f175e59d1059.tar.gz
rss-bridge-0e3a79fd78c205a48c1ef16a8ff6f175e59d1059.tar.zst
rss-bridge-0e3a79fd78c205a48c1ef16a8ff6f175e59d1059.zip
fix: bug in cache-prune (#3933)
fixes Uncaught Exception: No cache type configured
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap.php6
1 files changed, 6 insertions, 0 deletions
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());