diff --git a/docs/NEWS b/docs/NEWS index 6266923c..dcc389ba 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -4,6 +4,8 @@ Version 2.0-beta2 () ------------------------------------------------------------------------ + * RSS importer accepts pubDate in addition to pubdate element. + * Upgrader in Dashboard can be disabled, returns error message when URL not accessible diff --git a/include/admin/importers/generic.inc.php b/include/admin/importers/generic.inc.php index f059d7a4..688cb3fc 100644 --- a/include/admin/importers/generic.inc.php +++ b/include/admin/importers/generic.inc.php @@ -94,6 +94,9 @@ class Serendipity_Import_Generic extends Serendipity_Import { } $entry['title'] = $this->decode($item['title']); + if (!isset($item['pubdate']) && isset($item['pubDate'])) { + $item['pubdate'] = $item['pubDate']; + } $entry['timestamp'] = $this->decode(strtotime(isset($item['pubdate']) ? $item['pubdate'] : $item['dc:date'])); if ($entry['timestamp'] == -1) { // strtotime does not seem to parse ISO 8601 dates