1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

'no comment' in Recent theme

This commit is contained in:
dubcheck 2014-09-19 11:50:02 +02:00 committed by czaks
parent a1f26e8fd1
commit c2f612bac9

View File

@ -93,7 +93,10 @@
openBoard($post['board']);
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])) . '#' . $post['id'];
if ($post['body'] != "")
$post['snippet'] = pm_snippet($post['body'], 30);
else
$post['snippet'] = "<em>" . _("(no comment)") . "</em>";
$post['board_name'] = $board['name'];
$recent_posts[] = $post;