diff --git a/lib/RssBridge.php b/lib/RssBridge.php index 04e5fb31..5e85da2a 100644 --- a/lib/RssBridge.php +++ b/lib/RssBridge.php @@ -5,7 +5,7 @@ See https://github.com/sebsauvage/rss-bridge Licence: Public domain. */ -define('PATH_VENDOR', '/../vendor'); +define('PATH_VENDOR', __DIR__ . '/../vendor'); require __DIR__ . '/Exceptions.php'; require __DIR__ . '/Format.php'; @@ -24,7 +24,7 @@ require __DIR__ . '/html.php'; require __DIR__ . '/error.php'; require __DIR__ . '/contents.php'; -$vendorLibSimpleHtmlDom = __DIR__ . PATH_VENDOR . '/simplehtmldom/simple_html_dom.php'; +$vendorLibSimpleHtmlDom = PATH_VENDOR . '/simplehtmldom/simple_html_dom.php'; if(!file_exists($vendorLibSimpleHtmlDom)) { throw new \HttpException('"PHP Simple HTML DOM Parser" library is missing. Get it from http://simplehtmldom.sourceforge.net and place the script "simple_html_dom.php" in ' @@ -34,7 +34,7 @@ if(!file_exists($vendorLibSimpleHtmlDom)) { } require_once $vendorLibSimpleHtmlDom; -$vendorLibPhpUrlJoin = __DIR__ . PATH_VENDOR . '/php-urljoin/src/urljoin.php'; +$vendorLibPhpUrlJoin = PATH_VENDOR . '/php-urljoin/src/urljoin.php'; if(!file_exists($vendorLibPhpUrlJoin)) { throw new \HttpException('"php-urljoin" library is missing. Get it from https://github.com/fluffy-critter/php-urljoin and place the script "urljoin.php" in '