mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-12945 fixing mod indexes broken by previous commit; merged from MOODLE_19_STABLE
This commit is contained in:
parent
78117f38bc
commit
52ae8c057a
8 changed files with 72 additions and 43 deletions
|
@ -48,11 +48,16 @@
|
|||
|
||||
$currentsection = "";
|
||||
$options->para = false;
|
||||
foreach ($cms as $cm) {
|
||||
if (!coursemodule_visible_for_user($cm)) {
|
||||
|
||||
$modinfo = get_fast_modinfo($course);
|
||||
foreach ($modinfo->instances['resource'] as $cm) {
|
||||
if (!$cm->uservisible) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$cm->summary = $cms[$cm->id]->summary;
|
||||
$cm->timemodified = $cms[$cm->id]->timemodified;
|
||||
|
||||
if ($course->format == "weeks" or $course->format == "topics") {
|
||||
$printsection = "";
|
||||
if ($cm->section !== $currentsection) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue