MDL-25746 fixed db tempate page layout to prevent hidden content layers
authorAparup Banerjee <aparup@moodle.com>
Mon, 11 Apr 2011 07:15:58 +0000 (15:15 +0800)
committerAparup Banerjee <aparup@moodle.com>
Mon, 11 Apr 2011 07:15:58 +0000 (15:15 +0800)
mod/data/templates.php

index 9a1ee1e..5e321e7 100644 (file)
@@ -90,6 +90,7 @@ if ($mode == 'singletemplate') {
 $PAGE->requires->js('/mod/data/data.js');
 $PAGE->set_title($data->name);
 $PAGE->set_heading($course->fullname);
+$PAGE->set_pagelayout('report');
 echo $OUTPUT->header();
 echo $OUTPUT->heading(format_string($data->name));