]> git.mjollnir.org Git - moodle.git/commitdiff
Little tidyings, I should be in bed watching Scrubs!
authormoodler <moodler>
Sun, 26 Mar 2006 16:19:57 +0000 (16:19 +0000)
committermoodler <moodler>
Sun, 26 Mar 2006 16:19:57 +0000 (16:19 +0000)
mod/data/lib.php
mod/data/view.php

index d918241ee11b8d09300fc6c62c7f8f4ef982a958..9796e2f5bff3e44957682c7cb5dde054dc32b12d 100755 (executable)
@@ -1152,7 +1152,8 @@ function data_print_comment($data, $commentid) {
     echo '</td><td class="content" align="left">'."\n";
 
     // Print whole message
-    echo format_text($comment->content);
+    $options->para = false;
+    echo format_text($comment->content, FORMAT_MOODLE, $options);
 
 /// Commands
 
index 48ebb005a74e86083a7c689f2adca4c9b37526e2..4966f945c81b446ab22a2e626b439196b5905280 100755 (executable)
         echo '<div style="clear:both;"></div>';
     }
     
-    if ($data->intro and empty($sort) and empty($search) and empty($page)) {
+    if ($data->intro and empty($sort) and empty($search) and empty($page) and empty($rid)) {
         print_simple_box(format_text($data->intro), 'center', '70%', '', 5, 'generalbox', 'intro');
     }
 
     if (!$records = get_records_sql($sql)){
         if ($search){
             notify(get_string('nomatch','data'));
-        }
-        else {
+        } else {
             notify(get_string('norecords','data'));
         }