X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=lib%2Fcoursecatlib.php;h=d8c8ef1285541149c732e68574a2bd70279074be;hp=e5edde1a17b498c5b8ec948dc304ccad28065ac5;hb=1dcd1a071cff14abea017d9e4ac383158b2f3635;hpb=b3cfb01316b83869c50c4d22078e5fde283178c1 diff --git a/lib/coursecatlib.php b/lib/coursecatlib.php index e5edde1a17b..d8c8ef12855 100644 --- a/lib/coursecatlib.php +++ b/lib/coursecatlib.php @@ -1839,6 +1839,7 @@ class coursecat implements renderable, cacheable_object, IteratorAggregate { } if ($coursesids) { + require_once($CFG->dirroot.'/course/lib.php'); if (!move_courses($coursesids, $newparentid)) { if ($showfeedback) { echo $OUTPUT->notification("Error moving courses");