From a88b148d2006df63aa44011234f133143011edee Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 6 Nov 2018 18:24:05 +0100 Subject: [PATCH] [RssBridge] Add PATH_LIB Add constant PATH_LIB, pointing to '/lib' to make the include process same for vendor and lib files. --- lib/RssBridge.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/lib/RssBridge.php b/lib/RssBridge.php index 967e5c5e..a4f1d766 100644 --- a/lib/RssBridge.php +++ b/lib/RssBridge.php @@ -6,23 +6,24 @@ Licence: Public domain. */ define('PATH_VENDOR', __DIR__ . '/../vendor'); +define('PATH_LIB', __DIR__ . '/../lib'); -require_once __DIR__ . '/Exceptions.php'; -require_once __DIR__ . '/Format.php'; -require_once __DIR__ . '/FormatAbstract.php'; -require_once __DIR__ . '/Bridge.php'; -require_once __DIR__ . '/BridgeAbstract.php'; -require_once __DIR__ . '/FeedExpander.php'; -require_once __DIR__ . '/Cache.php'; -require_once __DIR__ . '/Authentication.php'; -require_once __DIR__ . '/Configuration.php'; -require_once __DIR__ . '/BridgeCard.php'; -require_once __DIR__ . '/BridgeList.php'; -require_once __DIR__ . '/ParameterValidator.php'; +require_once PATH_LIB . '/Exceptions.php'; +require_once PATH_LIB . '/Format.php'; +require_once PATH_LIB . '/FormatAbstract.php'; +require_once PATH_LIB . '/Bridge.php'; +require_once PATH_LIB . '/BridgeAbstract.php'; +require_once PATH_LIB . '/FeedExpander.php'; +require_once PATH_LIB . '/Cache.php'; +require_once PATH_LIB . '/Authentication.php'; +require_once PATH_LIB . '/Configuration.php'; +require_once PATH_LIB . '/BridgeCard.php'; +require_once PATH_LIB . '/BridgeList.php'; +require_once PATH_LIB . '/ParameterValidator.php'; -require_once __DIR__ . '/html.php'; -require_once __DIR__ . '/error.php'; -require_once __DIR__ . '/contents.php'; +require_once PATH_LIB . '/html.php'; +require_once PATH_LIB . '/error.php'; +require_once PATH_LIB . '/contents.php'; require_once PATH_VENDOR . '/simplehtmldom/simple_html_dom.php'; require_once PATH_VENDOR . '/php-urljoin/src/urljoin.php';