From: moodler Date: Tue, 28 Oct 2003 14:01:15 +0000 (+0000) Subject: Make sure resources are put through format_text so that they can be X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c260b07707a07f16d3806ce1cbf8894dbe6fafbd;p=moodle.git Make sure resources are put through format_text so that they can be processed properly (eg autolinking) --- diff --git a/mod/resource/view.php b/mod/resource/view.php index a858c82088..ba376948ec 100644 --- a/mod/resource/view.php +++ b/mod/resource/view.php @@ -147,7 +147,7 @@ print_header($pagetitle, "$course->fullname", "$navigation $resource->name", "", "", true, update_module_button($cm->id, $course->id, $strresource), navmenu($course, $cm)); - print_simple_box(text_to_html($resource->alltext), "center", "", "$THEME->cellcontent", "20"); + print_simple_box(format_text($resource->alltext), "center", "", "$THEME->cellcontent", "20"); echo "

$strlastmodified: ".userdate($resource->timemodified)."

"; @@ -161,7 +161,7 @@ print_simple_box_start("center", "", "$THEME->cellcontent", "20"); - echo $resource->alltext; + echo format_text($resource->alltext, FORMAT_HTML); print_simple_box_end(); @@ -222,7 +222,7 @@ print_header($pagetitle, "$course->fullname", "$navigation $resource->name", "", "", true, update_module_button($cm->id, $course->id, $strresource), navmenu($course, $cm)); - print_simple_box(wiki_to_html($resource->alltext), "center", "", "$THEME->cellcontent", "20" ); + print_simple_box(format_text($resource->alltext, FORMAT_WIKI), "center", "", "$THEME->cellcontent", "20" ); echo "

$strlastmodified: ".userdate($resource->timemodified)."

";