Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

MDL-36379 user_view: fixed issue with page layout when editing was on

  • Loading branch information...
commit 8b03c251852b656c0b2eb6de2d27a25bfa18d286 1 parent 6109f21
@samhemelryk samhemelryk authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 user/view.php
10 user/view.php
@@ -148,9 +148,12 @@
+$PAGE->set_title("$course->fullname: $strpersonalprofile: $fullname");
-/// We've established they can see the user's name at least, so what about the rest?
+// Locate the users settings in the settings navigation and force it open.
+// This MUST be done after we've set up the page as it is going to cause theme and output to initialise.
if (!$currentuser) {
if ($node = $PAGE->settingsnav->get('userviewingsettings'.$user->id)) {
@@ -163,9 +166,6 @@
$node->forceopen = false;
-$PAGE->set_title("$course->fullname: $strpersonalprofile: $fullname");
echo $OUTPUT->header();
echo '<div class="userprofile">';

0 comments on commit 8b03c25

Please sign in to comment.
Something went wrong with that request. Please try again.