Skip to content

Commit

Permalink
MDL-45537 mod_assign: Requiring locallib for class assign
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed May 15, 2014
1 parent c1ed254 commit ac2eafe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/assign/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@ function assign_grade_item_update($assign, $grades=null) {
if (isset($assign->gradefeedbackenabled)) {
$gradefeedbackenabled = $assign->gradefeedbackenabled;
} else if ($assign->grade == 0) { // Grade feedback is needed only when grade == 0.
require_once($CFG->dirroot . '/mod/assign/locallib.php');
$mod = get_coursemodule_from_instance('assign', $assign->id, $assign->courseid);
$cm = context_module::instance($mod->id);
$assignment = new assign($cm, null, null);
Expand Down

0 comments on commit ac2eafe

Please sign in to comment.