From 81ba96ff94deef51ee843c8137f8f4c3ed8ae629 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 6 Nov 2018 18:42:24 +0100 Subject: [PATCH] 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 --- index.php | 6 +++--- lib/RssBridge.php | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index e2e97267..bc621906 100644 --- a/index.php +++ b/index.php @@ -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; diff --git a/lib/RssBridge.php b/lib/RssBridge.php index e0186c24..c1799e10 100644 --- a/lib/RssBridge.php +++ b/lib/RssBridge.php @@ -2,6 +2,9 @@ define('PATH_LIB', __DIR__ . '/../lib'); // Path for core library define('PATH_LIB_VENDOR', __DIR__ . '/../vendor'); // Path for vendor library +define('PATH_LIB_BRIDGES', __DIR__ . '/../bridges/'); // Path to bridges library +define('PATH_LIB_FORMATS', __DIR__ . '/../formats/'); // Path to formats library +define('PATH_LIB_CACHES', __DIR__ . '/../caches/'); // Path to caches library define('PATH_CACHE', __DIR__ . '/../cache'); // Path to cache folder // Classes