mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-23182 - Corrected context level to prevent admin menu from opening.
This commit is contained in:
parent
f601756991
commit
108ef06708
@ -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');
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user