MDL-62798 repositories: Report sections by name in server repository

This commit is contained in:
Mihail Geshoski 2018-07-02 14:54:25 +08:00
parent 6e020b161a
commit 02de9f2014

View file

@ -229,7 +229,9 @@ class file_info_context_course extends file_info {
} }
} }
$urlbase = $CFG->wwwroot.'/pluginfile.php'; $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);
} }
/** /**