]> git.mjollnir.org Git - moodle.git/commitdiff
FIx the links that were removed by format_string in 1.8 MDLSITE-152
authormoodler <moodler>
Mon, 3 Sep 2007 07:55:28 +0000 (07:55 +0000)
committermoodler <moodler>
Mon, 3 Sep 2007 07:55:28 +0000 (07:55 +0000)
mod/forum/lib.php
mod/forum/search.php

index 8da6ce802535280a42ab0eca9762fe9c8126dcb6..c6dbfb98885efa45a2bca9929e7856b7c8342f94 100644 (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));
index 7593d4c817d531ae70b07abbbd67adc4ba68e36f..5bd683a9313ed953631d85db1bdd2583903a8939 100644 (file)
         }
 
         $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