mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-43454 mod_assignment: Use of undefined constants FILE_*
This commit is contained in:
parent
2f4e0db7c3
commit
19c70231f9
@ -37,6 +37,9 @@ class assignment_online extends assignment_base {
|
||||
$editmode = ($editable and $edit);
|
||||
|
||||
if ($editmode) {
|
||||
// Loading the constants FILE_INTERNAL and FILE_EXTERNAL.
|
||||
require_once($CFG->dirroot . '/repository/lib.php');
|
||||
|
||||
// prepare form and process submitted data
|
||||
$editoroptions = array(
|
||||
'noclean' => false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user