MDL-42706 mod_book: Undefined CFG in pluginfile function

This commit is contained in:
Frederic Massart
2013-11-05 13:19:42 +08:00
parent 4816e19a6f
commit 3ec7ea98a1
+1 -1
View File
@@ -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;