forked from friendica/friendica-addons
fix whitespace
This commit is contained in:
parent
5ea8dca4c4
commit
941818ffb8
1 changed files with 2 additions and 2 deletions
|
@ -661,9 +661,9 @@ function retriever_extract(DOMDocument $doc, array $retriever) {
|
|||
*/
|
||||
function retriever_globalise_urls(DOMDocument $doc, array $resource) {
|
||||
$components = parse_url($resource['redirect-url']);
|
||||
if (!array_key_exists('scheme', $components) || !array_key_exists('host', $components) || !array_key_exists('path', $components)) {
|
||||
if (!array_key_exists('scheme', $components) || !array_key_exists('host', $components) || !array_key_exists('path', $components)) {
|
||||
return $doc;
|
||||
}
|
||||
}
|
||||
$rooturl = $components['scheme'] . "://" . $components['host'];
|
||||
$dirurl = $rooturl . dirname($components['path']) . "/";
|
||||
$params = array('$dirurl' => $dirurl, '$rooturl' => $rooturl);
|
||||
|
|
Loading…
Reference in a new issue