Commit bd123957 authored by Sujith Haridasan's avatar Sujith Haridasan Committed by Eloy Lafuente
Browse files

MDL-72396 core: Fix the primary active tab for my/index.php

Fix the primary active tab for my/index.php
parent f01d69cb
......@@ -90,10 +90,9 @@ $PAGE->set_subpage($currentpage->id);
$PAGE->set_title($pagetitle);
$PAGE->set_heading($header);
$PAGE->set_primary_active_tab('myhome');
if (!isguestuser()) { // Skip default home page for guests
if (get_home_page() != HOMEPAGE_MY) {
$PAGE->set_primary_active_tab('myhome');
if (optional_param('setdefaulthome', false, PARAM_BOOL)) {
set_user_preference('user_home_page_preference', HOMEPAGE_MY);
} else if (!empty($CFG->defaulthomepage) && $CFG->defaulthomepage == HOMEPAGE_USER) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment