Skip to content

Commit

Permalink
mod-forum MDL-22220 Added CSS classes for better for post styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Sep 23, 2010
1 parent ae715bb commit 899bacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3278,12 +3278,12 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
// Print shortened version
echo format_text(forum_shorten_post($post->message), $post->messageformat, $options, $course->id);
$numwords = count_words(strip_tags($post->message));
echo '<div class="posting"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
echo '<div class="posting shortenedpost"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
echo get_string('readtherest', 'forum');
echo '</a> ('.get_string('numwords', '', $numwords).')...</div>';
} else {
// Print whole message
echo '<div class="posting">';
echo '<div class="posting fullpost">';
if ($highlight) {
echo highlight($highlight, format_text($post->message, $post->messageformat, $options, $course->id));
} else {
Expand Down

0 comments on commit 899bacc

Please sign in to comment.