Merge branch 'MDL-60914_master' of git://github.com/markn86/moodle

This commit is contained in:
Jun Pataleta 2017-12-04 12:50:06 +13:00
commit c1cd2924ec

View File

@ -143,6 +143,8 @@ function xmldb_lti_upgrade($oldversion) {
}
if (!$acceptgrades) {
// Required when doing CLI upgrade.
require_once($CFG->libdir . '/gradelib.php');
grade_update('mod/lti', $lti->course, 'mod', 'lti', $lti->id, 0, null, array('deleted' => 1));
}