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-25 12:38:09 +13:00
committed by Sam Hemelryk
parent a468750723
commit b5196badcd
+2
View File
@@ -4066,7 +4066,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()) {