mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
FIx the links that were removed by format_string in 1.8 MDLSITE-152
This commit is contained in:
parent
f389ceff2a
commit
acc7a2fabe
@ -2208,7 +2208,11 @@ 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>';
|
||||
} else {
|
||||
echo '<div class="subject">'.format_string($post->subject).'</div>';
|
||||
}
|
||||
|
||||
echo '<div class="author">';
|
||||
$fullname = fullname($post, has_capability('moodle/site:viewfullnames', $modcontext));
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user