From 6861b6fe33ed7f8c84814f24feeeb804ad116760 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 14 May 2009 20:42:53 +0000 Subject: [PATCH] Adding one more require_once($CFG->dirroot . '/course/lib.php') to another rebuild_course_cache() --- lib/db/upgrade.php | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5