Run the online assignment cleanup code automatically on an upgrade. (SE)
This commit is contained in:
@@ -1168,6 +1168,13 @@ function main_upgrade($oldversion=0) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($oldversion < 2005072100) { // run the online assignment cleanup code
|
||||
include($CFG->dirroot.'/'.$CFG->admin.'/oacleanup.php');
|
||||
if (function_exists('online_assignment_cleanup')) {
|
||||
online_assignment_cleanup();
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user