From 0e30468e0f869176859404968e82c4479cffe8b4 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 7 Jun 2019 19:51:00 +0200 Subject: [PATCH] [rssbridge] Use PATH_ROOT whenever possible --- lib/rssbridge.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rssbridge.php b/lib/rssbridge.php index f7c1a3d7..3b0e65d4 100644 --- a/lib/rssbridge.php +++ b/lib/rssbridge.php @@ -15,31 +15,31 @@ define('PATH_ROOT', __DIR__ . '/../'); /** Path to the core library */ -define('PATH_LIB', __DIR__ . '/../lib/'); // Path to core library +define('PATH_LIB', PATH_ROOT . 'lib/'); /** Path to the vendor library */ -define('PATH_LIB_VENDOR', __DIR__ . '/../vendor/'); +define('PATH_LIB_VENDOR', PATH_ROOT . 'vendor/'); /** Path to the bridges library */ -define('PATH_LIB_BRIDGES', __DIR__ . '/../bridges/'); +define('PATH_LIB_BRIDGES', PATH_ROOT . 'bridges/'); /** Path to the formats library */ -define('PATH_LIB_FORMATS', __DIR__ . '/../formats/'); +define('PATH_LIB_FORMATS', PATH_ROOT . 'formats/'); /** Path to the caches library */ -define('PATH_LIB_CACHES', __DIR__ . '/../caches/'); +define('PATH_LIB_CACHES', PATH_ROOT . 'caches/'); /** Path to the actions library */ -define('PATH_LIB_ACTIONS', __DIR__ . '/../actions/'); +define('PATH_LIB_ACTIONS', PATH_ROOT . 'actions/'); /** Path to the cache folder */ -define('PATH_CACHE', __DIR__ . '/../cache/'); +define('PATH_CACHE', PATH_ROOT . 'cache/'); /** Path to the whitelist file */ -define('WHITELIST', __DIR__ . '/../whitelist.txt'); +define('WHITELIST', PATH_ROOT . 'whitelist.txt'); /** Path to the default whitelist file */ -define('WHITELIST_DEFAULT', __DIR__ . '/../whitelist.default.txt'); +define('WHITELIST_DEFAULT', PATH_ROOT . 'whitelist.default.txt'); /** Path to the configuration file */ define('FILE_CONFIG', PATH_ROOT . 'config.ini.php');