Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 142... Línea 142...
142
 
142
 
143
$headingstr = get_string('calendar', 'core_calendar');
143
$headingstr = get_string('calendar', 'core_calendar');
144
// If the user is on the course page,
144
// If the user is on the course page,
145
// then make the course name linkable to ease the user's navigation to the course page.
145
// then make the course name linkable to ease the user's navigation to the course page.
-
 
146
if ($iscoursecalendar) {
146
if ($iscoursecalendar) {
147
    $linkcourse = html_writer::link(
147
    $url = new \moodle_url('/course/view.php', ['id' => $courseid]);
148
        course_get_url($course),
-
 
149
        format_string($course->shortname, options: ['context' => $PAGE->context]),
148
    $linkcourse = html_writer::link($url, $course->shortname);
150
    );
149
    $headingstr = "{$headingstr}: {$linkcourse}";
151
    $headingstr = "{$headingstr}: {$linkcourse}";
150
}
152
}
Línea 151... Línea 153...
151
$PAGE->set_heading($headingstr, false);
153
$PAGE->set_heading($headingstr, false);