mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
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:
parent
ff402712a3
commit
8893ba5236
@ -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');
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user