diff options
| author | 8chan <admin@8chan.co> | 2015-03-09 02:31:08 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-06 12:40:07 +0200 |
| commit | ae4eb4d3d9c390d4c203a468313154aa59809e59 (patch) | |
| tree | c6bfed8321fe3fb081522307bdbb264b91b69804 /templates/themes/catalog/theme.php | |
| parent | 632d0a76d0afc5bd7a8cc90e6625a74fe432065a (diff) | |
RSS
Diffstat (limited to 'templates/themes/catalog/theme.php')
| -rw-r--r-- | templates/themes/catalog/theme.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index c7a8ee95..239d4dff 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -93,6 +93,7 @@ } if (empty($post['image_count'])) $post['image_count'] = 0; + $post['pubdate'] = date('r', $post['time']); $recent_posts[] = $post; } @@ -113,5 +114,11 @@ 'board' => $board_name, 'link' => $config['root'] . $board['dir'] ))); + + file_write($config['dir']['home'] . $board_name . '/index.rss', Element('themes/catalog/index.rss', Array( + 'config' => $config, + 'recent_posts' => $recent_posts, + 'board' => $board + ))); } }; |
