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 8e92813 commit fc21d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assignment/view.php
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 fc21d58

Please sign in to comment.