]> git.mjollnir.org Git - moodle.git/commitdiff
More changes for XHTML compatibility.
authormoodler <moodler>
Tue, 19 Oct 2004 06:40:47 +0000 (06:40 +0000)
committermoodler <moodler>
Tue, 19 Oct 2004 06:40:47 +0000 (06:40 +0000)
Remove some left over test code.

mod/resource/type/html/resource.class.php

index 38acb2d14e9346f8d78243e680e00f7cdfa14482..6328349bae3308ff561e211ca5eeead4481f1077 100644 (file)
@@ -104,6 +104,7 @@ function display() {
             print_header();
             print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), 
                                          "center", "", "$THEME->cellcontent", "20");
+            print_footer($course);
         } else {                           /// Make a page and a pop-up window
 
             print_header($pagetitle, $course->fullname, "$navigation {$resource->name}", 
@@ -132,7 +133,6 @@ function display() {
             print_footer($course);
         }
     } else {    /// not a popup at all
-        die;
 
         add_to_log($course->id, "resource", "view", "view.php?id={$this->cm->id}", $resource->id, $this->cm->id);
         print_header($pagetitle, $course->fullname, "$navigation {$resource->name}",