forked from leftypol/leftypol
RSS
This commit is contained in:
parent
632d0a76d0
commit
ae4eb4d3d9
2 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
)));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue