From: moodler Date: Thu, 14 Aug 2003 10:32:51 +0000 (+0000) Subject: Force rebuild of course cache - just in case! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5195536408230a748b057ed5feb9b19d08934cfc;p=moodle.git Force rebuild of course cache - just in case! --- diff --git a/course/view.php b/course/view.php index c26a162bde..4b2b553bdd 100644 --- a/course/view.php +++ b/course/view.php @@ -86,6 +86,10 @@ } } + if (empty($course->modinfo)) { // Course cache was never made + rebuild_course_cache($course->id); + } + if (!file_exists("$CFG->dirroot/course/format/$course->format.php")) { // Default format is weeks $course->format = "weeks"; }