From c260b07707a07f16d3806ce1cbf8894dbe6fafbd Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 28 Oct 2003 14:01:15 +0000 Subject: [PATCH] Make sure resources are put through format_text so that they can be processed properly (eg autolinking) --- mod/resource/view.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)."

"; -- 2.39.5