Skip to content

Commit

Permalink
Merge branch 'MDL-74154-master' of https://github.com/peterRd/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Mar 16, 2022
2 parents dd7d03a + 8802254 commit ff40271
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions calendar/delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
$PAGE->navbar->add($title);
$PAGE->set_title($site->shortname.': '.$strcalendar.': '.$title);
$PAGE->set_heading($COURSE->fullname);
$PAGE->has_secondary_navigation_setter(false);
echo $OUTPUT->header();
echo $OUTPUT->box_start('eventlist');

Expand Down
2 changes: 1 addition & 1 deletion calendar/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
$PAGE->navbar->add($title);
$PAGE->set_title($course->shortname.': '.$strcalendar.': '.$title);
$PAGE->set_heading($course->fullname);

$PAGE->has_secondary_navigation_setter(false);
$renderer = $PAGE->get_renderer('core_calendar');
$calendar->add_sidecalendar_blocks($renderer);

Expand Down
1 change: 1 addition & 0 deletions calendar/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
$PAGE->set_title($course->shortname.': '.get_string('calendar', 'calendar').': '.$pagetitle);
$PAGE->set_heading($headingstr);
$PAGE->set_pagelayout('standard');
$PAGE->has_secondary_navigation_setter(false);

$renderer = $PAGE->get_renderer('core_calendar');
$calendar->add_sidecalendar_blocks($renderer);
Expand Down
1 change: 1 addition & 0 deletions calendar/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
$heading = get_string('importcalendar', 'calendar');
$pagetitle = $course->shortname . ': ' . get_string('calendar', 'calendar') . ': ' . $heading;

$PAGE->has_secondary_navigation_setter(false);
$PAGE->set_title($pagetitle);
$PAGE->set_heading($heading);
$PAGE->set_url($pageurl);
Expand Down
1 change: 1 addition & 0 deletions calendar/managesubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

$PAGE->set_url($url);
$PAGE->set_pagelayout('admin');
$PAGE->has_secondary_navigation_setter(false);

if ($courseid != SITEID && !empty($courseid)) {
// Course ID must be valid and existing.
Expand Down
1 change: 1 addition & 0 deletions calendar/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
} else {
$PAGE->set_context(context_system::instance());
}
$PAGE->has_secondary_navigation_setter(false);

require_login($course, false);

Expand Down

0 comments on commit ff40271

Please sign in to comment.