Run the online assignment cleanup code automatically on an upgrade. (SE)

This commit is contained in:
moodler
2005-07-21 11:00:34 +00:00
parent 6be6289f54
commit 9bb3bc4e98
3 changed files with 15 additions and 1 deletions
+7
View File
@@ -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;
}