MDL-43960 assign: Add missing include

There was a report of mod_assign_save_grade webservice failing because of this.
I couldn't reproduce it, but grepping the code found one place where this include
should be added.
This commit is contained in:
Damyon Wiese
2014-03-13 12:50:20 +08:00
parent 1dc93170ae
commit 3cd6404f3b
+2
View File
@@ -3719,7 +3719,9 @@ class assign {
* @return bool
*/
protected function gradebook_item_update($submission=null, $grade=null) {
global $CFG;
require_once($CFG->dirroot.'/mod/assign/lib.php');
// Do not push grade to gradebook if blind marking is active as
// the gradebook would reveal the students.
if ($this->is_blind_marking()) {