Small tidy up - left in some stuff, and now use proper error function.

This commit is contained in:
thepurpleblob
2008-05-13 15:10:36 +00:00
parent 51ca9f3095
commit 7a3f8bf4b7
+2 -4
View File
@@ -19,7 +19,7 @@
$id = required_param('id', PARAM_INT); // course
if (! $course = get_record("course", "id", $id)) {
error("Course ID is incorrect");
print_error('invalidcourse');
}
require_course_login($course);
@@ -111,9 +111,6 @@
$view->submissiondate = $submissiondate;
$view->cm = $assignment->coursemodule;
// get grading information for this assignment
$grading_info = grade_get_grades( $course->id, 'mod', 'assignment', $assignment->id, $USER->id );
$views[] = $view;
}
@@ -148,5 +145,6 @@
print_container_end();
}
print_footer($course);
?>