Skip to content
Browse files

Tweak to add ... after shortpost

  • Loading branch information...
1 parent 59578f4 commit 37c6527855c8d67d364d705941930176520cd152 martin committed Jul 31, 2002
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -245,7 +245,7 @@ function forum_shorten_post($message) {
// Look for the first return between 50 and $FORUM_LONG_POST
$shortmessage = substr($message, 50, $FORUM_LONG_POST);
if ($pos = strpos($shortmessage, "\n")) {
- return substr($message, 0, 50 + $pos);
+ return substr($message, 0, 50 + $pos). " ...";
} else {
return substr($message, 0, $FORUM_LONG_POST). "...";
}

0 comments on commit 37c6527

Please sign in to comment.
Something went wrong with that request. Please try again.