mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +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
|
@ -82,11 +82,16 @@
|
|||
|
||||
$currentsection = "";
|
||||
|
||||
foreach ($cms as $cm) {
|
||||
if (!coursemodule_visible_for_user($cm)) {
|
||||
$modinfo = get_fast_modinfo($course);
|
||||
foreach ($modinfo->instances['data'] as $cm) {
|
||||
if (!$cm->uservisible) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$cm->intro = $cms[$cm->id]->intro;
|
||||
$cm->approval = $cms[$cm->id]->approval;
|
||||
$cm->rssarticles = $cms[$cm->id]->rssarticles;
|
||||
|
||||
$printsection = "";
|
||||
|
||||
$class = $cm->visible ? '' : 'class="dimmed"';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue