enclosures: rewrite relative urls on import, duh

This commit is contained in:
Andrew Dolgov 2017-03-27 19:20:46 +03:00
parent 9594ea6875
commit 86e534290e
1 changed files with 2 additions and 1 deletions

View File

@ -1078,7 +1078,8 @@
if (is_array($encs)) {
foreach ($encs as $e) {
$e_item = array(
$e->link, $e->type, $e->length, $e->title, $e->width, $e->height);
rewrite_relative_url($site_url, $e->link),
$e->type, $e->length, $e->title, $e->width, $e->height);
array_push($enclosures, $e_item);
}
}