]> git.mjollnir.org Git - moodle.git/commitdiff
Included course/lib.php to be able to rebuild_course_cache()
authorstronk7 <stronk7>
Mon, 4 Sep 2006 19:33:27 +0000 (19:33 +0000)
committerstronk7 <stronk7>
Mon, 4 Sep 2006 19:33:27 +0000 (19:33 +0000)
It was working until some time ago, but now it's required.

mod/forum/db/mysql.php
mod/forum/db/postgres7.php

index 821b4a364fcf1dfeee41a26f11fb315823da1fce..cfb65ee4b52a77e31f5c9e1dab5366ae6d35672d 100644 (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.
index f3f98d9e81430fbb11d276290c458199d3a5ec9f..2332bcb8de2a6b91677688a6d770809335b823f3 100644 (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.