diff --git a/mod/assignment/view.php b/mod/assignment/view.php index 255a7c70c48fe..6fabde16d018e 100644 --- a/mod/assignment/view.php +++ b/mod/assignment/view.php @@ -44,7 +44,7 @@ if (!file_exists($classfile)) { throw new moodle_exception('unsupportedsubplugin', 'assignment', new moodle_url('/course/view.php', array('id' => $course->id)), $assignment->assignmenttype); } -require ($classfile); +require_once($classfile); $assignmentclass = "assignment_$assignment->assignmenttype"; $assignmentinstance = new $assignmentclass($cm->id, $assignment, $cm, $course);