Commit c6cf7034 authored by Dries's avatar Dries

- Patch #519362 by mfb: make the aggregator module pick up dc:author tags.

parent 13cc9824
......@@ -164,6 +164,11 @@ function aggregator_parse_feed(&$data, $feed) {
$item['timestamp'] = aggregator_parse_w3cdtf($date); // Aggregator_parse_w3cdtf() returns FALSE on failure.
}
// Resolve dc:creator tag as the item author if author tag is not set.
if (empty($item['author']) && !empty($item['dc:creator'])) {
$item['author'] = $item['dc:creator'];
}
$item += array('author' => '', 'description' => '');
// Store on $feed object. This is where processors will look for parsed items.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment