Add lastBuildDate to RSS feed xml

This commit is contained in:
Guillaume 2019-02-12 08:13:18 +01:00 committed by GitHub
parent 721099aa4f
commit b9e5161177
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);
}
}
}
}