diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-27 15:17:43 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-27 15:17:43 +0200 |
commit | 81508ab5e6f5b53bc9c354f355510fc3b4831fe9 (patch) | |
tree | 81b2fa65205411d04d7a35dd13301e985c34da30 | |
parent | ca1f423d496729432994e1dbc2f7fff4ed6ba607 (diff) |
few comments
-rwxr-xr-x | git2rss | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |