Merge branch 'wip-MDL-51095-master' of git://github.com/marinaglancy/moodle
authorDavid Monllao <davidm@moodle.com>
Mon, 17 Aug 2015 04:06:47 +0000 (12:06 +0800)
committerDavid Monllao <davidm@moodle.com>
Mon, 17 Aug 2015 04:06:47 +0000 (12:06 +0800)
enrol/meta/locallib.php

index c9c8013..08c50c8 100644 (file)
@@ -80,6 +80,7 @@ class enrol_meta_handler {
      */
     protected static function sync_with_parent_course(stdClass $instance, $userid) {
         global $DB, $CFG;
+        require_once($CFG->dirroot . '/group/lib.php');
 
         $plugin = enrol_get_plugin('meta');