}
}
+ if ($oldversion < 2003042400) {
+ // Rebuild all course caches, because of changes to do with visible variable
+ if ($courses = get_records_sql("SELECT * FROM {$CFG->prefix}course")) {
+ require_once("$CFG->dirroot/course/lib.php");
+ foreach ($courses as $course) {
+ $modinfo = serialize(get_array_of_activities($course->id));
+
+ if (!set_field("course", "modinfo", $modinfo, "id", $course->id)) {
+ notify("Could not cache module information for course '$course->fullname'!");
+ }
+ }
+ }
+ }
+
return true;
}
}
}
+ if ($oldversion < 2003042400) {
+ // Rebuild all course caches, because of changes to do with visible variable
+ if ($courses = get_records_sql("SELECT * FROM {$CFG->prefix}course")) {
+ require_once("$CFG->dirroot/course/lib.php");
+ foreach ($courses as $course) {
+ $modinfo = serialize(get_array_of_activities($course->id));
+
+ if (!set_field("course", "modinfo", $modinfo, "id", $course->id)) {
+ notify("Could not cache module information for course '$course->fullname'!");
+ }
+ }
+ }
+ }
return true;
}
// database to determine whether upgrades should
// be performed (see lib/db/*.php)
-$version = 2003042104; // The current version is a date (YYYYMMDDXX)
+$version = 2003042400; // The current version is a date (YYYYMMDDXX)
$release = "1.0.9 development"; // User-friendly version number