mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-62798 repositories: Report sections by name in server repository
This commit is contained in:
parent
6e020b161a
commit
02de9f2014
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue