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