Commit 3ec7ea98 authored by Frederic Massart's avatar Frederic Massart
Browse files

MDL-42706 mod_book: Undefined CFG in pluginfile function

parent 4816e19a
......@@ -405,7 +405,7 @@ function book_get_file_info($browser, $areas, $course, $cm, $context, $filearea,
* @return bool false if file not found, does not return if found - just send the file
function book_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array()) {
global $DB;
global $CFG, $DB;
if ($context->contextlevel != CONTEXT_MODULE) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment