From 19c70231f9c62e213725db31ff2f89a4dc974372 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 19 Dec 2013 07:21:04 +0100 Subject: [PATCH] MDL-43454 mod_assignment: Use of undefined constants FILE_* --- mod/assignment/type/online/assignment.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/assignment/type/online/assignment.class.php b/mod/assignment/type/online/assignment.class.php index aae05e4b24f..3424165ba3b 100644 --- a/mod/assignment/type/online/assignment.class.php +++ b/mod/assignment/type/online/assignment.class.php @@ -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,