mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
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.
This commit is contained in:
parent
ff402712a3
commit
19af5abcfa
@ -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(),
|
||||
|
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user