MDL-39962 - Events: added missing required file
authorMarina Glancy <marina@moodle.com>
Tue, 24 Sep 2013 10:02:57 +0000 (20:02 +1000)
committerMarina Glancy <marina@moodle.com>
Tue, 24 Sep 2013 10:02:57 +0000 (20:02 +1000)
mod/workshop/allocation/scheduled/classes/observer.php

index 90ddfd6..727edc7 100644 (file)
@@ -45,7 +45,9 @@ class observer {
      * @return bool
      */
     public static function workshop_viewed($event) {
-        global $DB;
+        global $DB, $CFG;
+
+        require_once($CFG->dirroot . '/mod/workshop/locallib.php');
 
         $workshop = $event->get_record_snapshot('workshop', $event->objectid);
         $course   = $event->get_record_snapshot('course', $event->courseid);