]> git.mjollnir.org Git - moodle.git/commitdiff
Adding one more require_once($CFG->dirroot . '/course/lib.php') to another rebuild_co...
authorstronk7 <stronk7>
Thu, 14 May 2009 20:42:53 +0000 (20:42 +0000)
committerstronk7 <stronk7>
Thu, 14 May 2009 20:42:53 +0000 (20:42 +0000)
lib/db/upgrade.php

index 543fa33bb85d069f7c40c67b5b0bfcd21448b3b3..958dd0a22e3587e5d7fead96f23e0518c0134ce0 100644 (file)
@@ -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