summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-15 21:32:43 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-15 21:32:43 +0000
commitc6cf70340a48e3889808bb93db96a41fc86d73b4 (patch)
tree9483366e7573814c6955db3380ec6c320bdc1556 /modules/aggregator
parent13cc9824a82d1ef6c0bb9143a5c1d7f0544e59e1 (diff)
downloadbrdo-c6cf70340a48e3889808bb93db96a41fc86d73b4.tar.gz
brdo-c6cf70340a48e3889808bb93db96a41fc86d73b4.tar.bz2
- Patch #519362 by mfb: make the aggregator module pick up dc:author tags.
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.parser.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.parser.inc b/modules/aggregator/aggregator.parser.inc
index 4b0c9ca94..f5a490241 100644
--- a/modules/aggregator/aggregator.parser.inc
+++ b/modules/aggregator/aggregator.parser.inc
@@ -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.