From 5b1059bb9f5c0d4b81651aee6bcb6f8f4c62802b Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 3 Sep 2007 07:57:56 +0000 Subject: [PATCH] Better solution for MDLSITE-152 --- mod/forum/lib.php | 4 ++-- mod/forum/search.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index c6dbfb9888..123fdb2462 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2208,8 +2208,8 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link echo ''; } - if (!empty($post->subjectkeeplinks)) { - echo '
'.format_string($post->subject, false).'
'; + if (!empty($post->subjectnoformat)) { + echo '
'.$post->subject.'
'; } else { echo '
'.format_string($post->subject).'
'; } diff --git a/mod/forum/search.php b/mod/forum/search.php index 5bd683a931..4c52187369 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -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 -- 2.39.5