From: nicolasconnault Date: Wed, 6 May 2009 14:19:19 +0000 (+0000) Subject: MDL-19010 Including courselib where needed during upgrade X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a9a0b93de113aea63308fcdd47ea7efc17284a08;p=moodle.git MDL-19010 Including courselib where needed during upgrade --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 55c5bf313b..0f1f4f1dd4 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1184,6 +1184,7 @@ function xmldb_main_upgrade($oldversion) { } /// Changes to modinfo mean we need to rebuild course cache + require_once($CFG->dirroot . '/course/lib.php'); rebuild_course_cache(0,true); /// For developer upgrades, turn on the conditional activities and completion