Merge branch 'MDL-62798-master' of git://github.com/mihailges/moodle

This commit is contained in:
Andrew Nicols
2018-08-07 13:07:31 +08:00
+3 -1
View File
@@ -229,7 +229,9 @@ class file_info_context_course extends file_info {
}
}
$urlbase = $CFG->wwwroot.'/pluginfile.php';
return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, $section->section, true, true, true, false);
require_once($CFG->dirroot.'/course/lib.php');
$sectionname = get_section_name($this->course, $section);
return new file_info_stored($this->browser, $this->context, $storedfile, $urlbase, $sectionname, true, true, true, false);
}
/**