Skip to content

Commit

Permalink
Small tidy up - left in some stuff, and now use proper error function.
Browse files Browse the repository at this point in the history
  • Loading branch information
thepurpleblob committed May 13, 2008
1 parent 51ca9f3 commit 7a3f8bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mod/assignment/type/online/all.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -148,5 +145,6 @@

print_container_end();
}

print_footer($course);
?>

0 comments on commit 7a3f8bf

Please sign in to comment.