mirror of
https://github.com/moodle/moodle.git
synced 2025-05-05 07:48:21 +02:00
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:
parent
71db9136fb
commit
d0d5525d93
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user