Run the online assignment cleanup code automatically on an upgrade. (SE)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user