mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-29 07:05:39 +02:00
[core] Add urljoin (#756)
Adds php-urljoin from https://github.com/fluffy-critter/php-urljoin to replace the custom implementation of 'defaultLinkTo'
This commit is contained in:
parent
9d0452d11b
commit
df58f5bbdb
3 changed files with 144 additions and 9 deletions
|
@ -34,6 +34,17 @@ if(!file_exists($vendorLibSimpleHtmlDom)) {
|
|||
}
|
||||
require_once $vendorLibSimpleHtmlDom;
|
||||
|
||||
$vendorLibPhpUrlJoin = __DIR__ . 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 '
|
||||
. substr(PATH_VENDOR, 4)
|
||||
. '/php-urljoin/src/',
|
||||
500);
|
||||
}
|
||||
require_once $vendorLibPhpUrlJoin;
|
||||
|
||||
|
||||
/* Example use
|
||||
|
||||
require_once __DIR__ . '/lib/RssBridge.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue