From 37c6527855c8d67d364d705941930176520cd152 Mon Sep 17 00:00:00 2001 From: martin Date: Wed, 31 Jul 2002 15:55:11 +0000 Subject: [PATCH] Tweak to add ... after shortpost --- mod/forum/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index de2f5f4bba..b7811e1288 100644 --- a/mod/forum/lib.php +++ b/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). "..."; } -- 2.39.5