FIx the links that were removed by format_string in 1.8 MDLSITE-152

This commit is contained in:
moodler 2007-09-03 07:55:28 +00:00
parent f389ceff2a
commit acc7a2fabe
2 changed files with 6 additions and 1 deletions

View File

@ -2208,7 +2208,11 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
echo '<td class="topic starter">';
}
echo '<div class="subject">'.format_string($post->subject).'</div>';
if (!empty($post->subjectkeeplinks)) {
echo '<div class="subject">'.format_string($post->subject, false).'</div>';
} else {
echo '<div class="subject">'.format_string($post->subject).'</div>';
}
echo '<div class="author">';
$fullname = fullname($post, has_capability('moodle/site:viewfullnames', $modcontext));

View File

@ -201,6 +201,7 @@
}
$post->subject = $fullsubject;
$post->subjectkeeplinks = 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