mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-72396 core: Fix the primary active tab for my/index.php
Fix the primary active tab for my/index.php
This commit is contained in:
parent
f01d69cb05
commit
bd12395717
1 changed files with 1 additions and 2 deletions
|
@ -90,10 +90,9 @@ $PAGE->set_subpage($currentpage->id);
|
||||||
$PAGE->set_title($pagetitle);
|
$PAGE->set_title($pagetitle);
|
||||||
$PAGE->set_heading($header);
|
$PAGE->set_heading($header);
|
||||||
|
|
||||||
$PAGE->set_primary_active_tab('myhome');
|
|
||||||
|
|
||||||
if (!isguestuser()) { // Skip default home page for guests
|
if (!isguestuser()) { // Skip default home page for guests
|
||||||
if (get_home_page() != HOMEPAGE_MY) {
|
if (get_home_page() != HOMEPAGE_MY) {
|
||||||
|
$PAGE->set_primary_active_tab('myhome');
|
||||||
if (optional_param('setdefaulthome', false, PARAM_BOOL)) {
|
if (optional_param('setdefaulthome', false, PARAM_BOOL)) {
|
||||||
set_user_preference('user_home_page_preference', HOMEPAGE_MY);
|
set_user_preference('user_home_page_preference', HOMEPAGE_MY);
|
||||||
} else if (!empty($CFG->defaulthomepage) && $CFG->defaulthomepage == HOMEPAGE_USER) {
|
} else if (!empty($CFG->defaulthomepage) && $CFG->defaulthomepage == HOMEPAGE_USER) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue