]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8461
authorthepurpleblob <thepurpleblob>
Thu, 8 Feb 2007 11:19:55 +0000 (11:19 +0000)
committerthepurpleblob <thepurpleblob>
Thu, 8 Feb 2007 11:19:55 +0000 (11:19 +0000)
Looked like a typo, wrong parameter being sent to format_text so formatting was
ignored.

mod/resource/type/text/resource.class.php

index 1e6c420a2c1ad864c7bda1604e0e0152516663b0..f5e1aca636f18fca020ca1988cf39c3e5ed4c101 100644 (file)
@@ -114,7 +114,7 @@ function display() {
                     "", "", true, update_module_button($cm->id, $course->id, $this->strresource),
                     navmenu($course, $cm));
 
-            print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
+            print_simple_box(format_text($resource->alltext, $resource->reference, $formatoptions, $course->id),
                     "center", "", "", "20");
 
             $strlastmodified = get_string("lastmodified");