2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-25 16:52:13 +00:00

Stop putting pubDate=In Progress in dev RSS feed.

Should probably stop setting pubDate to 'In Progress', it's an artifact
of how the site used to work.
This commit is contained in:
Daniel James
2016-07-05 08:48:20 +01:00
parent 24268b3884
commit e40e79ee12
4 changed files with 10 additions and 6 deletions

View File

@@ -86,8 +86,12 @@ EOL;
$xml .= '<link>'.$this->encode_for_rss($page_link).'</link>';
$xml .= '<guid>'.$this->encode_for_rss($page_link).'</guid>';
# TODO: Convert date format?
$xml .= '<pubDate>'.$this->encode_for_rss($page->pub_date).'</pubDate>';
# TODO: Maybe use $page->last_modified as date for 'In Progress'.
if ($page->pub_date != 'In Progress') {
$rss_date = strtotime($page->pub_date);
assert($rss_date != false);
$xml .= '<pubDate>'.$this->encode_for_rss(date(DATE_RSS, $rss_date)).'</pubDate>';
}
# Placing the description in a root element to make it well formed xml->
$description = BoostSiteTools::base_links($page->description_xml, $page_link);