From: martin Date: Wed, 31 Jul 2002 15:55:11 +0000 (+0000) Subject: Tweak to add ... after shortpost X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=37c6527855c8d67d364d705941930176520cd152;p=moodle.git Tweak to add ... after shortpost --- 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). "..."; }