From: stronk7 Date: Thu, 14 May 2009 20:42:53 +0000 (+0000) Subject: Adding one more require_once($CFG->dirroot . '/course/lib.php') to another rebuild_co... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6861b6fe33ed7f8c84814f24feeeb804ad116760;p=moodle.git Adding one more require_once($CFG->dirroot . '/course/lib.php') to another rebuild_course_cache() --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 543fa33bb8..958dd0a22e 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1646,6 +1646,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); /// 'until' date in an activity condition should have 1 second subtracted /// (to go from 0:00 on the following day to 23:59 on the previous one). $DB->execute('UPDATE {course_modules} SET availableuntil = availableuntil - 1 WHERE availableuntil <> 0'); + require_once($CFG->dirroot . '/course/lib.php'); rebuild_course_cache(0, true); /// Main savepoint reached