Skip to content

Commit

Permalink
MDL-23182 - Corrected context level to prevent admin menu from opening.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Churchward committed Jul 12, 2010
1 parent f601756 commit 108ef06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion user/portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
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');
Expand Down
2 changes: 1 addition & 1 deletion user/portfoliologs.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$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();
Expand Down

0 comments on commit 108ef06

Please sign in to comment.