Skip to content

Commit

Permalink
Better formatting for the link
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 26, 2002
1 parent a8afb41 commit 67f0b4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,9 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
// Print shortened version
echo format_text(forum_shorten_post($post->message), $post->format);
$numwords = count_words(strip_tags($post->message));
echo "<A HREF=\"$CFG->wwwroot/mod/forum/discuss.php?d=$post->discussion\">";
echo "<P><A HREF=\"$CFG->wwwroot/mod/forum/discuss.php?d=$post->discussion\">";
echo get_string("readtherest", "forum");
echo "</A> (".get_string("numwords", "", $numwords).")...";
echo "</A> (".get_string("numwords", "", $numwords).")...</P>";
} else {
// Print whole message
echo format_text($post->message, $post->format);
Expand Down Expand Up @@ -736,7 +736,7 @@ function forum_shorten_post($message) {
default:
if (!$tag) {
if ($stopzone) {
if ($char == " " or $char == ".") {
if ($char == ".") {
$truncate = $i+1;
break 2;
}
Expand All @@ -756,7 +756,7 @@ function forum_shorten_post($message) {
$truncate = $i;
}

return substr($message, 0, $truncate)."<BR>";
return substr($message, 0, $truncate);
}


Expand Down

0 comments on commit 67f0b4c

Please sign in to comment.