MDL-74154 calendar: has_secondary_navigation_setter has been renamed

In MDL-72481, method has_secondary_navigation_setter has been renamed
to set_secondary_navigation.
This commit is contained in:
Sara Arjona 2022-03-16 16:10:20 +01:00
parent ff402712a3
commit 8893ba5236
6 changed files with 6 additions and 6 deletions

View File

@ -94,7 +94,7 @@ $PAGE->navbar->add($strcalendar, $viewcalendarurl);
$PAGE->navbar->add($title);
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$title);
$PAGE->set_heading($COURSE->fullname);
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_secondary_navigation(false);
echo $OUTPUT->header();
echo $OUTPUT->box_start('eventlist');

View File

@ -193,7 +193,7 @@ $PAGE->navbar->add($strcalendar, $viewcalendarurl);
$PAGE->navbar->add($title);
$PAGE->set_title($course->shortname.': '.$strcalendar.': '.$title);
$PAGE->set_heading($course->fullname);
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_secondary_navigation(false);
$renderer = $PAGE->get_renderer('core_calendar');
$calendar->add_sidecalendar_blocks($renderer);

View File

@ -131,7 +131,7 @@ $headingstr = ($courseid != SITEID && !empty($courseid)) ? "{$headingstr}: {$COU
$PAGE->set_title($course->shortname.': '.get_string('calendar', 'calendar').': '.$pagetitle);
$PAGE->set_heading($headingstr);
$PAGE->set_pagelayout('standard');
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_secondary_navigation(false);
$renderer = $PAGE->get_renderer('core_calendar');
$calendar->add_sidecalendar_blocks($renderer);

View File

@ -69,7 +69,7 @@ if (!calendar_user_can_add_event($course)) {
$heading = get_string('importcalendar', 'calendar');
$pagetitle = $course->shortname . ': ' . get_string('calendar', 'calendar') . ': ' . $heading;
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_secondary_navigation(false);
$PAGE->set_title($pagetitle);
$PAGE->set_heading($heading);
$PAGE->set_url($pageurl);

View File

@ -53,7 +53,7 @@ if ($courseid != SITEID && !empty($courseid)) {
$PAGE->set_url($url);
$PAGE->set_pagelayout('admin');
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_secondary_navigation(false);
if ($courseid != SITEID && !empty($courseid)) {
// Course ID must be valid and existing.

View File

@ -111,7 +111,7 @@ if ($iscoursecalendar && !empty($courseid)) {
} else {
$PAGE->set_context(context_system::instance());
}
$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_secondary_navigation(false);
require_login($course, false);