aboutsummaryrefslogtreecommitdiff
path: root/rss.php
diff options
context:
space:
mode:
authorNathan Lasseter <nathan@4574.co.uk>2014-06-09 12:47:30 +0000
committerNathan Lasseter <nathan@4574.co.uk>2014-06-09 12:47:30 +0000
commitddf5eebee1b6ce706c4d7fa78c66e1e13abc3821 (patch)
treef5c0b6e87acab427ffcb93262d7c30a0743636b4 /rss.php
parentd9c3e6cce5ae3272f52ceec4cc79afaef24b5925 (diff)
Fixed RSS feed and changed title from archives.php to postsHEADmaster
Diffstat (limited to 'rss.php')
-rw-r--r--rss.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/rss.php b/rss.php
index 25fb3b8..7a4eca8 100644
--- a/rss.php
+++ b/rss.php
@@ -20,14 +20,15 @@
$plusfile = preg_replace('/ /', '+', $file);
$dashfile = preg_replace('/ /', '-', $file);
$stat = stat("{$blogPosts}$file");
- $date = date(DATE_ATOM, $stat['mtime']);
+ $time = $stat['mtime'];
+ $date = date(DATE_ATOM, $time);
$post = file_get_contents("{$blogPosts}$file");
$post = preg_replace('/\r?\n/', "<br>\n", $post);
echo "\t<entry>\n";
echo "\t\t<title>$file</title>\n";
echo "\t\t<link href=\"http://{$_SERVER['SERVER_NAME']}{$blogRoot}post/{$plusfile}\" />\n";
- echo "\t\t<id>tag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d") . ":{$blogRoot}{$dashfile}</id>\n";
+ echo "\t\t<id>tag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d", $time) . ":{$blogRoot}{$dashfile}</id>\n";
echo "\t\t<updated>$date</updated>\n";
echo "\t\t<summary type=\"html\"><![CDATA[";
echo summarise($post);