mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
accesslib rework: Upgrade block to populate context.path and friends
Note: this upgrade changes how accesslib works.
This commit is contained in:
parent
394074424a
commit
c24f4599c3
@ -2093,6 +2093,12 @@ function xmldb_main_upgrade($oldversion=0) {
|
|||||||
$result = $result && create_table($table);
|
$result = $result && create_table($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($result && $oldversion < 2007091900) {
|
||||||
|
cleanup_contexts();
|
||||||
|
build_context_path(true);
|
||||||
|
load_all_capabilities();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
/// drop old gradebook tables
|
/// drop old gradebook tables
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
// This is compared against the values stored in the database to determine
|
// This is compared against the values stored in the database to determine
|
||||||
// whether upgrades should be performed (see lib/db/*.php)
|
// whether upgrades should be performed (see lib/db/*.php)
|
||||||
|
|
||||||
$version = 2007091800; // YYYYMMDD = date
|
$version = 2007091900; // YYYYMMDD = date
|
||||||
// XY = increments within a single day
|
// XY = increments within a single day
|
||||||
|
|
||||||
$release = '1.9 Beta +'; // Human-friendly version name
|
$release = '1.9 Beta +'; // Human-friendly version name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user