MDL-23182 - Corrected context level to prevent admin menu from opening.

This commit is contained in:
Mike Churchward 2010-07-12 20:10:52 +00:00
parent f601756991
commit 108ef06708
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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();