From c24f4599c331523bbaa7d684c15d6e4fa678434a Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 19 Sep 2007 07:42:42 +0000 Subject: [PATCH] accesslib rework: Upgrade block to populate context.path and friends Note: this upgrade changes how accesslib works. --- lib/db/upgrade.php | 6 ++++++ version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 61527308b4..cd1136aa0e 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2093,6 +2093,12 @@ function xmldb_main_upgrade($oldversion=0) { $result = $result && create_table($table); } + if ($result && $oldversion < 2007091900) { + cleanup_contexts(); + build_context_path(true); + load_all_capabilities(); + } + /* /// drop old gradebook tables diff --git a/version.php b/version.php index 2a86bd036e..5537e803a8 100644 --- a/version.php +++ b/version.php @@ -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 = 2007091800; // YYYYMMDD = date + $version = 2007091900; // YYYYMMDD = date // XY = increments within a single day $release = '1.9 Beta +'; // Human-friendly version name -- 2.39.5