mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
2 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue