summaryrefslogtreecommitdiff
path: root/templates/themes/recent/theme.php
diff options
context:
space:
mode:
authordubcheck <admin@alokal.eu>2014-09-19 11:50:02 +0200
committerczaks <marcin@6irc.net>2014-09-21 05:51:17 +0200
commitc2f612bac9d4f9ac6883484b71edb8249963bfdc (patch)
tree5f76db1ac66533dac6d58802457b0d78a3085a26 /templates/themes/recent/theme.php
parenta1f26e8fd15b79a7b699c8d6dd920960a60503cd (diff)
'no comment' in Recent theme
Diffstat (limited to 'templates/themes/recent/theme.php')
-rw-r--r--templates/themes/recent/theme.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/themes/recent/theme.php b/templates/themes/recent/theme.php
index a25ff6a9..b1153477 100644
--- a/templates/themes/recent/theme.php
+++ b/templates/themes/recent/theme.php
@@ -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'];
- $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'];
$recent_posts[] = $post;