- Patch #519362 by mfb: make the aggregator module pick up dc:author tags.
parent
13cc9824a8
commit
c6cf70340a
|
@ -164,6 +164,11 @@ function aggregator_parse_feed(&$data, $feed) {
|
||||||
$item['timestamp'] = aggregator_parse_w3cdtf($date); // Aggregator_parse_w3cdtf() returns FALSE on failure.
|
$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' => '');
|
$item += array('author' => '', 'description' => '');
|
||||||
|
|
||||||
// Store on $feed object. This is where processors will look for parsed items.
|
// Store on $feed object. This is where processors will look for parsed items.
|
||||||
|
|
Loading…
Reference in New Issue