Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f4e0db
)
MDL-43438 mod_assignment: Prevent double inclusion of plugin files
author
Frederic Massart
<fmcell@gmail.com>
Wed, 18 Dec 2013 08:13:47 +0000
(09:13 +0100)
committer
Frederic Massart
<fmcell@gmail.com>
Wed, 18 Dec 2013 08:13:47 +0000
(09:13 +0100)
mod/assignment/view.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/assignment/view.php
b/mod/assignment/view.php
index
255a7c7
..
6fabde1
100644
(file)
--- a/
mod/assignment/view.php
+++ b/
mod/assignment/view.php
@@
-44,7
+44,7
@@
$classfile = "$CFG->dirroot/mod/assignment/type/$assignment->assignmenttype/assi
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);