Permalink
Browse files

MDL-43438 mod_assignment: Prevent double inclusion of plugin files

  • Loading branch information...
1 parent c9a3d37 commit 5e64cff4f1d77fc55ae10095f211dbc25eac0ee5 @FMCorz FMCorz committed Dec 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assignment/view.php
View
@@ -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);

0 comments on commit 5e64cff

Please sign in to comment.