fixed missing cfg global
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 14:02:32 +0000 (14:02 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 14:02:32 +0000 (14:02 +0000)
mod/workshop/lib.php

index b27234c..958349f 100644 (file)
@@ -1141,7 +1141,7 @@ function workshop_get_file_areas($course, $cm, $context) {
  * @return void this should never return to the caller
  */
 function workshop_pluginfile($course, $cm, $context, $filearea, array $args, $forcedownload) {
-    global $DB;
+    global $DB, $CFG;
 
     if ($context->contextlevel != CONTEXT_MODULE) {
         return false;