MDL-87694 profile: set top level heading when accessed as guest user.
This commit is contained in:
+9
-3
@@ -52,9 +52,15 @@ if (!empty($CFG->forceloginforprofiles)) {
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_title(get_string('user'));
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
|
||||
get_login_url(),
|
||||
$CFG->wwwroot);
|
||||
echo $OUTPUT->confirm(
|
||||
get_string('guestcantaccessprofiles', 'error'),
|
||||
get_login_url(),
|
||||
$CFG->wwwroot,
|
||||
[
|
||||
'headinglevel' => 1,
|
||||
'confirmtitle' => get_string('loginrequired'),
|
||||
],
|
||||
);
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
|
||||
+9
-3
@@ -68,9 +68,15 @@ if (!empty($CFG->forceloginforprofiles)) {
|
||||
$PAGE->set_secondary_navigation(false);
|
||||
$PAGE->set_title(get_string('loginrequired'));
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->confirm(get_string('guestcantaccessprofiles', 'error'),
|
||||
get_login_url(),
|
||||
$CFG->wwwroot);
|
||||
echo $OUTPUT->confirm(
|
||||
get_string('guestcantaccessprofiles', 'error'),
|
||||
get_login_url(),
|
||||
$CFG->wwwroot,
|
||||
[
|
||||
'headinglevel' => 1,
|
||||
'confirmtitle' => get_string('loginrequired'),
|
||||
],
|
||||
);
|
||||
echo $OUTPUT->footer();
|
||||
die;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user