[pull] date fallback for ATOM format
This commit is contained in:
parent
e9902e2391
commit
e81a19a04b
1 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,10 @@ EOD;
|
||||||
- <content type="html"> : RFC look with xhtml, keep this in spite of ?
|
- <content type="html"> : RFC look with xhtml, keep this in spite of ?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// #### TEMPORARY FIX ###
|
||||||
|
$feedTimestamp = date(DATE_ATOM, time());
|
||||||
|
// ################
|
||||||
|
|
||||||
/* Data are prepared, now let's begin the "MAGIE !!!" */
|
/* Data are prepared, now let's begin the "MAGIE !!!" */
|
||||||
$toReturn = '<?xml version="1.0" encoding="UTF-8"?>';
|
$toReturn = '<?xml version="1.0" encoding="UTF-8"?>';
|
||||||
$toReturn .= <<<EOD
|
$toReturn .= <<<EOD
|
||||||
|
@ -60,7 +64,7 @@ EOD;
|
||||||
|
|
||||||
<title type="text">{$title}</title>
|
<title type="text">{$title}</title>
|
||||||
<id>http{$https}://{$httpHost}{$httpInfo}/</id>
|
<id>http{$https}://{$httpHost}{$httpInfo}/</id>
|
||||||
<updated></updated>
|
<updated>{$feedTimestamp}</updated>
|
||||||
<link rel="alternate" type="text/html" href="{$uri}" />
|
<link rel="alternate" type="text/html" href="{$uri}" />
|
||||||
<link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />
|
<link rel="self" href="http{$https}://{$httpHost}{$serverRequestUri}" />
|
||||||
{$entries}
|
{$entries}
|
||||||
|
|
Loading…
Reference in a new issue