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
@@ -1449,6 +1449,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;
}
+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;
}
+1 -1
View File
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
$version = 2005060220; // YYYYMMDD = Moodle 1.5 Date
$version = 2005072100; // YYYYMMDD = Moodle 1.5 Date
// X = Moodle 1.5 Point release (0,1,2...)
// Y = Interim incrementer