]> git.mjollnir.org Git - moodle.git/commitdiff
Small tidy up - left in some stuff, and now use proper error function.
authorthepurpleblob <thepurpleblob>
Tue, 13 May 2008 15:10:36 +0000 (15:10 +0000)
committerthepurpleblob <thepurpleblob>
Tue, 13 May 2008 15:10:36 +0000 (15:10 +0000)
mod/assignment/type/online/all.php

index 1cf09354361054f046eccc40e1a3a7fff4ab4879..9c0722f7fc87ba2ca3c7ff120cc8a0d8e57ff37b 100644 (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);
         $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;
     }
 
 
         print_container_end();
     }
+
     print_footer($course);
 ?>