diff options
Diffstat (limited to 'modules/aggregator/aggregator.parser.inc')
-rw-r--r-- | modules/aggregator/aggregator.parser.inc | 5 |
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. |