Better solution for MDLSITE-152

This commit is contained in:
moodler
2007-09-03 07:57:56 +00:00
parent acc7a2fabe
commit 5b1059bb9f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2208,8 +2208,8 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
echo '<td class="topic starter">';
}
if (!empty($post->subjectkeeplinks)) {
echo '<div class="subject">'.format_string($post->subject, false).'</div>';
if (!empty($post->subjectnoformat)) {
echo '<div class="subject">'.$post->subject.'</div>';
} else {
echo '<div class="subject">'.format_string($post->subject).'</div>';
}
+1 -1
View File
@@ -201,7 +201,7 @@
}
$post->subject = $fullsubject;
$post->subjectkeeplinks = true;
$post->subjectnoformat = true;
// Identify search terms only found in HTML markup, and add a warning about them to
// the start of the message text. However, do not do the highlighting here. forum_print_post