wrong appearance on feedbacks located on the frontpage

This commit is contained in:
Andreas Grabs
2010-05-14 12:14:59 +00:00
parent 7620725fe5
commit 2ad5d2efaa
+1 -1
View File
@@ -91,10 +91,10 @@ $strfeedbacks = get_string("modulenameplural", "feedback");
$strfeedback = get_string("modulename", "feedback");
if($course->id == SITEID) {
$PAGE->set_context($context);
$PAGE->set_cm($cm, $course); // set's up global $COURSE
$PAGE->set_pagelayout('incourse');
}
$PAGE->set_url('/mod/feedback/view.php', array('id'=>$cm->id, 'do_show'=>'view'));
$PAGE->set_title(format_string($feedback->name));
$PAGE->set_heading(format_string($course->fullname));