Merge pull request #953 from ltGuillaume/patch-1

Add lastBuildDate to RSS feed xml
This commit is contained in:
Diego Najar 2019-02-12 09:47:33 +01:00 committed by GitHub
commit e82b8c4e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ class pluginRSS extends Plugin {
$xml .= '<title>'.$site->title().'</title>';
$xml .= '<link>'.$site->url().'</link>';
$xml .= '<description>'.$site->description().'</description>';
$xml .= '<lastBuildDate>'.date(DATE_RSS).'</lastBuildDate>';
// Get keys of pages
foreach ($list as $pageKey) {
@ -136,4 +137,4 @@ class pluginRSS extends Plugin {
exit(0);
}
}
}
}