Skip to content

Commit

Permalink
MDL-43438 mod_assignment: Prevent double inclusion of plugin files
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz committed Dec 18, 2013
1 parent 2f4e0db commit 4550e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4550e76

Please sign in to comment.