summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-03-27 15:17:43 +0200
committerRemi Collet <fedora@famillecollet.com>2017-03-27 15:17:43 +0200
commit81508ab5e6f5b53bc9c354f355510fc3b4831fe9 (patch)
tree81b2fa65205411d04d7a35dd13301e985c34da30
parentca1f423d496729432994e1dbc2f7fff4ed6ba607 (diff)
few comments
-rwxr-xr-xgit2rss4
1 files changed, 3 insertions, 1 deletions
diff --git a/git2rss b/git2rss
index 1be99c9..4fe14a1 100755
--- a/git2rss
+++ b/git2rss
@@ -39,7 +39,7 @@ while (count($histo) > 50) {
}
file_put_contents(__DIR__ . '/git2rss.json', json_encode($histo, JSON_PRETTY_PRINT));
-// RSS
+// Generate RSS
$feed = new Feed();
$channel = new Channel();
$channel
@@ -67,5 +67,7 @@ foreach ($histo as $entry) {
->guid("${entry['repo']}_${entry['hash']}", true)
->appendTo($channel);
}
+
+// Save RSS
file_put_contents(__DIR__ . '/index.html', $feed);