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

merge-requests/26/head
Dries Buytaert 2009-07-15 21:32:43 +00:00
parent 13cc9824a8
commit c6cf70340a
1 changed files with 5 additions and 0 deletions

View File

@ -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.