From: stronk7 Date: Mon, 4 Sep 2006 19:33:27 +0000 (+0000) Subject: Included course/lib.php to be able to rebuild_course_cache() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d0d5525d93895ecafbe3253b7acf84b4f56f28db;p=moodle.git Included course/lib.php to be able to rebuild_course_cache() It was working until some time ago, but now it's required. --- diff --git a/mod/forum/db/mysql.php b/mod/forum/db/mysql.php index 821b4a364f..cfb65ee4b5 100644 --- a/mod/forum/db/mysql.php +++ b/mod/forum/db/mysql.php @@ -255,6 +255,7 @@ function forum_upgrade($oldversion) { } // We need to rebuild all the course caches to refresh the state of // the forum modules. + include_once( "$CFG->dirroot/course/lib.php" ); rebuild_course_cache(); } // End if. diff --git a/mod/forum/db/postgres7.php b/mod/forum/db/postgres7.php index f3f98d9e81..2332bcb8de 100644 --- a/mod/forum/db/postgres7.php +++ b/mod/forum/db/postgres7.php @@ -213,6 +213,7 @@ function forum_upgrade($oldversion) { // We need to rebuild all the course caches to refresh the state of // the forum modules. + include_once( "$CFG->dirroot/course/lib.php" ); rebuild_course_cache(); } // End if.