This commit is contained in:
8chan
2015-03-09 02:31:08 -07:00
committed by czaks
parent 632d0a76d0
commit ae4eb4d3d9
2 changed files with 26 additions and 0 deletions

View File

@@ -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
)));
}
};