From d0d5525d93895ecafbe3253b7acf84b4f56f28db Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 4 Sep 2006 19:33:27 +0000 Subject: [PATCH] Included course/lib.php to be able to rebuild_course_cache() It was working until some time ago, but now it's required. --- mod/forum/db/mysql.php | 1 + mod/forum/db/postgres7.php | 1 + 2 files changed, 2 insertions(+) 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. -- 2.39.5