From 19af5abcfa866abddce3e6010bcf4208238da1cc Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Wed, 16 Mar 2022 16:23:18 +0100 Subject: [PATCH] MDL-74181 user: has_secondary_navigation_setter has been renamed In MDL-72481, method has_secondary_navigation_setter has been renamed to set_secondary_navigation. --- user/profile.php | 2 +- user/view.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/user/profile.php b/user/profile.php index fef3b4e8148..36acf19b685 100644 --- a/user/profile.php +++ b/user/profile.php @@ -48,7 +48,7 @@ if (!empty($CFG->forceloginforprofiles)) { require_login(); if (isguestuser()) { $PAGE->set_context(context_system::instance()); - $PAGE->has_secondary_navigation_setter(false); + $PAGE->set_secondary_navigation(false); echo $OUTPUT->header(); echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'), get_login_url(), diff --git a/user/view.php b/user/view.php index c576ee3ec21..1ec2016e448 100644 --- a/user/view.php +++ b/user/view.php @@ -65,7 +65,7 @@ if (!empty($CFG->forceloginforprofiles)) { // Guests do not have permissions to view anyone's profile if forceloginforprofiles is set. if (isguestuser()) { - $PAGE->has_secondary_navigation_setter(false); + $PAGE->set_secondary_navigation(false); echo $OUTPUT->header(); echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'), get_login_url(),