1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

core: Add PATH_LIB_BRIDGES, PATH_LIB_FORMATS and PATH_LIB_CACHES

- PATH_LIB_BRIDGES defines the path to bridges
- PATH_LIB_FORMATS defines the path to formats
- PATH_LIB_CACHES defines the path to caches

Include constants in RssBridge.php for consistency
This commit is contained in:
logmanoriginal
2018-11-06 18:42:24 +01:00
parent 984f0b24d0
commit 81ba96ff94
2 changed files with 6 additions and 3 deletions

View File

@@ -81,9 +81,9 @@ $whitelist_default = array(
try {
Bridge::setDir(__DIR__ . '/bridges/');
Format::setDir(__DIR__ . '/formats/');
Cache::setDir(__DIR__ . '/caches/');
Bridge::setDir(PATH_LIB_BRIDGES);
Format::setDir(PATH_LIB_FORMATS);
Cache::setDir(PATH_LIB_CACHES);
if(!file_exists(WHITELIST_FILE)) {
$whitelist_selection = $whitelist_default;