mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-27 03:50:42 +03:00
[RssBridge] Include __DIR__ in PATH_VENDOR
This commit is contained in:
parent
723bd1150a
commit
bfae04d1fe
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ See https://github.com/sebsauvage/rss-bridge
|
||||||
Licence: Public domain.
|
Licence: Public domain.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('PATH_VENDOR', '/../vendor');
|
define('PATH_VENDOR', __DIR__ . '/../vendor');
|
||||||
|
|
||||||
require __DIR__ . '/Exceptions.php';
|
require __DIR__ . '/Exceptions.php';
|
||||||
require __DIR__ . '/Format.php';
|
require __DIR__ . '/Format.php';
|
||||||
|
@ -24,7 +24,7 @@ require __DIR__ . '/html.php';
|
||||||
require __DIR__ . '/error.php';
|
require __DIR__ . '/error.php';
|
||||||
require __DIR__ . '/contents.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)) {
|
if(!file_exists($vendorLibSimpleHtmlDom)) {
|
||||||
throw new \HttpException('"PHP Simple HTML DOM Parser" library is missing.
|
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 '
|
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;
|
require_once $vendorLibSimpleHtmlDom;
|
||||||
|
|
||||||
$vendorLibPhpUrlJoin = __DIR__ . PATH_VENDOR . '/php-urljoin/src/urljoin.php';
|
$vendorLibPhpUrlJoin = PATH_VENDOR . '/php-urljoin/src/urljoin.php';
|
||||||
if(!file_exists($vendorLibPhpUrlJoin)) {
|
if(!file_exists($vendorLibPhpUrlJoin)) {
|
||||||
throw new \HttpException('"php-urljoin" library is missing.
|
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 '
|
Get it from https://github.com/fluffy-critter/php-urljoin and place the script "urljoin.php" in '
|
||||||
|
|
Loading…
Reference in a new issue