MDL-43454 mod_assignment: Use of undefined constants FILE_*

This commit is contained in:
Frederic Massart 2013-12-19 07:21:04 +01:00
parent 2f4e0db7c3
commit 19c70231f9

View File

@ -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,