RSS
This commit is contained in:
@@ -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
|
||||
)));
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user