mirror of
https://github.com/moodle/moodle.git
synced 2025-06-03 06:35:57 +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
|
// We need to rebuild all the course caches to refresh the state of
|
||||||
// the forum modules.
|
// the forum modules.
|
||||||
|
include_once( "$CFG->dirroot/course/lib.php" );
|
||||||
rebuild_course_cache();
|
rebuild_course_cache();
|
||||||
|
|
||||||
} // End if.
|
} // End if.
|
||||||
|
@ -213,6 +213,7 @@ function forum_upgrade($oldversion) {
|
|||||||
|
|
||||||
// We need to rebuild all the course caches to refresh the state of
|
// We need to rebuild all the course caches to refresh the state of
|
||||||
// the forum modules.
|
// the forum modules.
|
||||||
|
include_once( "$CFG->dirroot/course/lib.php" );
|
||||||
rebuild_course_cache();
|
rebuild_course_cache();
|
||||||
|
|
||||||
} // End if.
|
} // End if.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user