]> git.mjollnir.org Git - moodle.git/commitdiff
Tweak to add ... after shortpost
authormartin <martin>
Wed, 31 Jul 2002 15:55:11 +0000 (15:55 +0000)
committermartin <martin>
Wed, 31 Jul 2002 15:55:11 +0000 (15:55 +0000)
mod/forum/lib.php

index de2f5f4bba5df326a4c5b95ebbd0dcc538dfe7c1..b7811e1288c3be0ba0c617675953501d75c1cb5d 100644 (file)
@@ -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). "...";
         }