Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tweak to add ... after shortpost

  • Loading branch information...
commit 37c6527855c8d67d364d705941930176520cd152 1 parent 59578f4
martin authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  mod/forum/lib.php
2  mod/forum/lib.php
@@ -245,7 +245,7 @@ function forum_shorten_post($message) {
245 245 // Look for the first return between 50 and $FORUM_LONG_POST
246 246 $shortmessage = substr($message, 50, $FORUM_LONG_POST);
247 247 if ($pos = strpos($shortmessage, "\n")) {
248   - return substr($message, 0, 50 + $pos);
  248 + return substr($message, 0, 50 + $pos). " ...";
249 249 } else {
250 250 return substr($message, 0, $FORUM_LONG_POST). "...";
251 251 }

0 comments on commit 37c6527

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