From: moodler Date: Sun, 26 Mar 2006 16:19:57 +0000 (+0000) Subject: Little tidyings, I should be in bed watching Scrubs! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dbdfc3dbab7265f5a59013fe11e28a7060fc29dc;p=moodle.git Little tidyings, I should be in bed watching Scrubs! --- diff --git a/mod/data/lib.php b/mod/data/lib.php index d918241ee1..9796e2f5bf 100755 --- a/mod/data/lib.php +++ b/mod/data/lib.php @@ -1152,7 +1152,8 @@ function data_print_comment($data, $commentid) { echo ''."\n"; // Print whole message - echo format_text($comment->content); + $options->para = false; + echo format_text($comment->content, FORMAT_MOODLE, $options); /// Commands diff --git a/mod/data/view.php b/mod/data/view.php index 48ebb005a7..4966f945c8 100755 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -131,7 +131,7 @@ echo '
'; } - 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'); } @@ -345,8 +345,7 @@ if (!$records = get_records_sql($sql)){ if ($search){ notify(get_string('nomatch','data')); - } - else { + } else { notify(get_string('norecords','data')); }