Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 83... Línea 83...
83
        $sectionmenu[course_get_url($course)->out(false)] = get_string('maincoursepage');
83
        $sectionmenu[course_get_url($course)->out(false)] = get_string('maincoursepage');
84
        $section = 1;
84
        $section = 1;
85
        $numsections = $format->get_last_section_number();
85
        $numsections = $format->get_last_section_number();
86
        while ($section <= $numsections) {
86
        while ($section <= $numsections) {
87
            $thissection = $modinfo->get_section_info($section);
87
            $thissection = $modinfo->get_section_info($section);
88
            $url = course_get_url($course, $section);
88
            $url = course_get_url($course, $section, ['navigation' => true]);
89
            if ($thissection->uservisible && $url && $section != $data->currentsection) {
89
            if ($thissection->uservisible && $url && $section != $data->currentsection) {
90
                $sectionmenu[$url->out(false)] = get_section_name($course, $section);
90
                $sectionmenu[$url->out(false)] = get_section_name($course, $section);
91
            }
91
            }
92
            $section++;
92
            $section++;
93
        }
93
        }