MDL-19119 moving get_fast_modinfo() to moodlelib.php - the recent changes related to inclusion of course/lib.php were causing regressions

This commit is contained in:
skodak
2009-05-17 18:45:00 +00:00
parent 09f77f09f5
commit 73efeff61b
3 changed files with 183 additions and 183 deletions
-2
View File
@@ -1748,8 +1748,6 @@ function get_all_instances_in_courses($modulename, $courses, $userid=NULL, $incl
return $outputarray;
}
require_once($CFG->dirroot.'/course/lib.php');
foreach ($courses as $course) {
$modinfo = get_fast_modinfo($course, $userid);