Skip to content

Commit

Permalink
MDL-43960 assign: Add missing include
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Damyon Wiese authored and Sam Hemelryk committed Mar 24, 2014
1 parent a468750 commit b5196ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4066,7 +4066,9 @@ protected function convert_submission_for_gradebook(stdClass $submission) {
* @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()) {
Expand Down

0 comments on commit b5196ba

Please sign in to comment.