Skip to content
Snippets Groups Projects
Commit 7b42789a authored by Alex Barth's avatar Alex Barth
Browse files

#905728 wrap GeoRSS tags in FeedsGeoElement class.

parent 9f891280
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,14 @@ class FeedsSyndicationParser extends FeedsParser {
$batch->setDescription($result['description']);
$batch->setLink($result['link']);
if (is_array($result['items'])) {
$batch->setItems($result['items']);
foreach ($result['items'] as $item) {
if (isset($item['geolocations'])) {
foreach ($item['geolocations'] as $k => $v) {
$item['geolocations'][$k] = new FeedsGeoTermElement($v);
}
}
$batch->addItem($item);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment