'no comment' in Recent theme
This commit is contained in:
parent
a1f26e8fd1
commit
c2f612bac9
@ -93,7 +93,10 @@
|
|||||||
openBoard($post['board']);
|
openBoard($post['board']);
|
||||||
|
|
||||||
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])) . '#' . $post['id'];
|
$post['link'] = $config['root'] . $board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], ($post['thread'] ? $post['thread'] : $post['id'])) . '#' . $post['id'];
|
||||||
$post['snippet'] = pm_snippet($post['body'], 30);
|
if ($post['body'] != "")
|
||||||
|
$post['snippet'] = pm_snippet($post['body'], 30);
|
||||||
|
else
|
||||||
|
$post['snippet'] = "<em>" . _("(no comment)") . "</em>";
|
||||||
$post['board_name'] = $board['name'];
|
$post['board_name'] = $board['name'];
|
||||||
|
|
||||||
$recent_posts[] = $post;
|
$recent_posts[] = $post;
|
||||||
|
Loading…
Reference in New Issue
Block a user