Included course/lib.php to be able to rebuild_course_cache()

It was working until some time ago, but now it's required.
This commit is contained in:
stronk7 2006-09-04 19:33:27 +00:00
parent 71db9136fb
commit d0d5525d93
2 changed files with 2 additions and 0 deletions

View File

@ -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.

View File

@ -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.