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:
parent
984f0b24d0
commit
81ba96ff94
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue