diff --git a/user/portfolio.php b/user/portfolio.php index 88bcb35934c..e5a083a61ac 100644 --- a/user/portfolio.php +++ b/user/portfolio.php @@ -60,7 +60,7 @@ $display = true; // set this to false in the conditions to stop processing require_login($course, false); $PAGE->set_url($url); -$PAGE->set_context(get_system_context()); +$PAGE->set_context(get_context_instance(CONTEXT_USER, $user->id)); $PAGE->set_title("$course->fullname: $fullname: $strportfolios"); $PAGE->set_heading($course->fullname); $PAGE->set_pagelayout('standard'); diff --git a/user/portfoliologs.php b/user/portfoliologs.php index c52449acce8..3c276d394d7 100644 --- a/user/portfoliologs.php +++ b/user/portfoliologs.php @@ -57,7 +57,7 @@ if ($perpage !== 0) { $PAGE->set_url($url); $PAGE->set_title("$course->fullname: $fullname: $strportfolios"); $PAGE->set_heading($course->fullname); -$PAGE->set_context(get_system_context()); +$PAGE->set_context(get_context_instance(CONTEXT_USER, $user->id)); $PAGE->set_pagelayout('standard'); echo $OUTPUT->header();